终审调整
This commit is contained in:
@@ -1238,7 +1238,7 @@ class Article extends Base
|
||||
}
|
||||
|
||||
//终审判断[3个审稿人审稿意见为:同意/1个审稿人审稿意见为:不同意] chengxiaoling 20250825 start
|
||||
if(isset($data['state']) && $data['state'] == 7){
|
||||
if(isset($data['state']) && $data['state'] == 8){
|
||||
if($article_info['state'] != 1){
|
||||
return jsonError("The article status is not with editor");
|
||||
}
|
||||
@@ -1261,7 +1261,7 @@ class Article extends Base
|
||||
|
||||
//更新文章状态
|
||||
$aWhere = ['article_id' => $iId,'state' => 1];
|
||||
$sUpateResult = $this->article_obj->where($aWhere)->limit(1)->update(['state' => 7]);
|
||||
$sUpateResult = $this->article_obj->where($aWhere)->limit(1)->update(['state' => 8]);
|
||||
if($sUpateResult === false){
|
||||
return jsonError("Status update failed");
|
||||
}
|
||||
@@ -1274,6 +1274,21 @@ class Article extends Base
|
||||
if(!$this->article_msg_obj->insert($insert_data)){
|
||||
return jsonError("article_msg insertion failed");
|
||||
}
|
||||
|
||||
//增加用户操作log
|
||||
$iEditorId = empty($editor_info['user_id']) ? 0 : $editor_info['user_id'];
|
||||
$sEditorAccount = empty($editor_info['account']) ? '' : $editor_info['account'];
|
||||
$sRealName = empty($editor_info['realname']) ? '' : $editor_info['realname'];
|
||||
$sTitle = empty($article_info['title']) ? '' : $article_info['title'];
|
||||
$iArticleUserId = empty($article_info['user_id']) ? 0 : $article_info['user_id'];
|
||||
$log_data['user_id'] = $iEditorId;
|
||||
$log_data['type'] = 1;
|
||||
$log_data['content'] = $sEditorAccount . "(" . $sRealName . "),更改了一篇文章:(" . $sTitle . ")的状态,更改时间是:" . date('Y-m-d H:i:s', time());
|
||||
$log_data['ctime'] = time();
|
||||
$this->user_log_obj->insert($log_data);
|
||||
|
||||
//增加usermsg
|
||||
add_usermsg($iArticleUserId, 'Your manuscript has new process: ' . $sTitle, '/articleDetail?id=' . $iId);
|
||||
return json(['code' => 0]);
|
||||
}
|
||||
//终审判断[3个审稿人审稿意见为:同意/1个审稿人审稿意见为:不同意] chengxiaoling 20250825 end
|
||||
|
||||
Reference in New Issue
Block a user