This commit is contained in:
chengxl
2026-01-14 09:46:20 +08:00
parent 66f914bd35
commit f64ca74b66

View File

@@ -795,7 +795,7 @@ class Workbench extends Base
if(empty($aArticle['journal_id'])){
return json_encode(array('status' => 8,'msg' => 'The article is not associated with a journal' ));
}
$aWhere = ['state' => 0,'journal_id' => 23];
$aWhere = ['state' => 0,'journal_id' => $aArticle['journal_id']];
$aJournal = Db::name('journal')->where($aWhere)->find();
if(empty($aJournal)){
return json_encode(array('status' => 9,'msg' => 'No journal information found' ));