1
This commit is contained in:
@@ -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([
|
||||
|
||||
Reference in New Issue
Block a user