1
This commit is contained in:
@@ -73,5 +73,25 @@ class Publish extends Controller
|
||||
$this->online_obj = Db::name('online');
|
||||
}
|
||||
|
||||
/**
|
||||
* 获取online文章列表
|
||||
*/
|
||||
public function getOnlineList(){
|
||||
$data = $this->request->post();
|
||||
$rule = new Validate([
|
||||
'issn'=>'require'
|
||||
]);
|
||||
if(!$rule->check($data)){
|
||||
return jsonError($rule->getError());
|
||||
}
|
||||
$t_journal_info = $this->journal_obj->where('issn',$data['issn'])->find();
|
||||
|
||||
$url = 'http://journalapi.tmrjournals.com/public/index.php/master/Article/getOnlineArticleForSubmit';
|
||||
$pra = [];
|
||||
$pra['issn'] = $t_journal_info['issn'];
|
||||
$res = object_to_array(json_decode(myPost($url, $pra)));
|
||||
$re['stages'] = $res['data']['stages'];
|
||||
return jsonSuccess($re);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user