1
This commit is contained in:
@@ -177,6 +177,23 @@ class Production extends Base
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
/**清空web的主体内容
|
||||
* @return void
|
||||
*/
|
||||
public function clearWebMains(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"article_id"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$url = "http://journalapi.tmrjournals.com/public/index.php/master/Article/clearArticleMainForSubmission";
|
||||
$res = object_to_array(json_decode(myPost($url,$data)));
|
||||
return jsonSuccess([]);
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
public function delWebMain(){
|
||||
@@ -192,6 +209,20 @@ class Production extends Base
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
public function delWebMains(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"ids"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$program['ids'] = json_encode($data['ids']);
|
||||
$url = "http://journalapi.tmrjournals.com/public/index.php/master/Article/delArticleMainsForSubmission";
|
||||
$res = object_to_array(json_decode(myPost($url,$program)));
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
public function editWebMain(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
|
||||
Reference in New Issue
Block a user