1
This commit is contained in:
@@ -2006,6 +2006,10 @@ class Article extends Base
|
||||
}
|
||||
$user_info = $this->user_obj->where('user_id', $data['user_id'])->find();
|
||||
$journal_info = $this->journal_obj->where('journal_id', $data['journal'])->find();
|
||||
|
||||
if($journal_info['state']==1){
|
||||
return jsonError("Submission failed");
|
||||
}
|
||||
$article_id = $data['article_id'];
|
||||
//添加文章基础信息
|
||||
if ($data['article_id'] == 0) {
|
||||
@@ -2832,6 +2836,7 @@ class Article extends Base
|
||||
$uidres = $this->user_obj->where(['account' => $username])->column('user_id');
|
||||
$where['editor_id'] = $uidres[0];
|
||||
}
|
||||
$where['state'] = 0;
|
||||
$list = $this->journal_obj->where($where)->select();
|
||||
return json($list);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user