This commit is contained in:
wangjinlei
2025-03-06 09:16:11 +08:00
parent 7a0cd98d3b
commit 62faa9326d
2 changed files with 92 additions and 9 deletions

View File

@@ -905,17 +905,28 @@ class Preaccept extends Base
if(!$rule->check($data)){
return jsonError($rule->getError());
}
$this->article_main_obj->where("am_id",$data['am_id'])->update(['state'=>1]);
return jsonSuccess([]);
}
/**批量删除正文的行
* @return void
*/
public function delMoreArticleMains(){
$data = $this->request->post();
$rule = new Validate([
"ids"=>"require"
]);
if(!$rule->check($data)){
return jsonError($rule->getError());
}
$idList = explode(",",$data['ids']);
$this->article_main_obj->whereIn("am_id",$idList)->update(['state'=>1]);
return jsonSuccess([]);
}
public function editArticleMainsForAuthor(){
$data = $this->request->post();
$rule = new Validate([