This commit is contained in:
wangjinlei
2023-08-18 09:45:53 +08:00
parent 3818cd0951
commit d7edd953a4
4 changed files with 34 additions and 3 deletions

View File

@@ -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);
}