1
This commit is contained in:
@@ -114,7 +114,7 @@ class Preaccept extends Base
|
||||
}
|
||||
$p_info = $this->production_article_obj->where('article_id',$data['article_id'])->where('state',0)->find();
|
||||
$pre_refer = $this->production_article_refer_obj->where('p_refer_id',$data['pre_p_refer_id'])->find();
|
||||
$insert['p_article_id'] = $data['p_article_id'];
|
||||
$insert['p_article_id'] = $p_info['p_article_id'];
|
||||
$insert['index'] = $pre_refer['index']+1;
|
||||
$insert['author'] = trim($data['author']);
|
||||
$insert['title'] = trim($data['title']);
|
||||
@@ -129,6 +129,29 @@ class Preaccept extends Base
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
public function editReferNotdoi(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
"p_refer_id"=>"require",
|
||||
"author"=>"require",
|
||||
"title"=>"require",
|
||||
"joura"=>"require",
|
||||
"dateno"=>"require",
|
||||
"doilink"=>"require"
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$update['author'] = trim($data['author']);
|
||||
$update['title'] = trim($data['title']);
|
||||
$update['joura'] = trim($data['joura']);
|
||||
$update['dateno'] = trim($data['dateno']);
|
||||
$update['doilink'] = trim($data['doilink']);
|
||||
$update['refer_doi'] = trim($data['doilink']);
|
||||
$this->production_article_refer_obj->where('p_refer_id',$data['p_refer_id'])->update($update);
|
||||
return jsonSuccess([]);
|
||||
}
|
||||
|
||||
// public function aaa(){
|
||||
// $list = $this->production_article_refer_obj->where('p_article_id',423)->where('state',0)->where('index',">",0)->setInc('index');
|
||||
// dump($list);
|
||||
|
||||
Reference in New Issue
Block a user