1
This commit is contained in:
@@ -450,6 +450,20 @@ class Preaccept extends Base
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function clearMainsRemark(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"am_id"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$this->article_main_obj->where("am_id",$data['am_id'])->update(['remark'=>"","state"=>0]);
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
|
||||
public function searchDoi()
|
||||
{
|
||||
$data = $this->request->post();
|
||||
@@ -606,7 +620,7 @@ class Preaccept extends Base
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$update['content'] = $this->replaceChinesePunctuation($this->removeExtraSpaces(trim($data['content'])));
|
||||
$update['content'] = $this->formatMain($data['content']);
|
||||
$update['state'] = 0;
|
||||
$this->article_main_obj->where("am_id",$data['am_id'])->update($update);
|
||||
return jsonSuccess([]);
|
||||
@@ -699,8 +713,7 @@ class Preaccept extends Base
|
||||
"amt_id"=>"require",
|
||||
"table_data"=>"require",
|
||||
"html_data"=>"require",
|
||||
"title"=>"require",
|
||||
"note"=>"require"
|
||||
"title"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
@@ -708,7 +721,9 @@ class Preaccept extends Base
|
||||
$update['table_data'] = $data['table_data'];
|
||||
$update['html_data'] = $data['html_data'];
|
||||
$update['title'] = $data['title'];
|
||||
$update['note'] = $data['note'];
|
||||
if (isset($data['note'])){
|
||||
$update['note'] = $data['note'];
|
||||
}
|
||||
$this->article_main_table_obj->where("amt_id",$data['amt_id'])->update($update);
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user