新增字段期刊涵盖主题多个逗号分隔

This commit is contained in:
chengxl
2025-05-07 13:31:07 +08:00
parent edd02ce535
commit 37be9ed8fd

View File

@@ -256,6 +256,16 @@ class Journal extends Base {
$update['email'] = $data['email'];
$update['epassword'] = $data['epassword'];
$update['kfen'] = $data['kfen'];
//新增字段期刊涵盖主题多个逗号分隔 chengxiaoling 20250507 start
if(!empty($data['journal_topic'])){
if(is_array($data['journal_topic'])){
$update['journal_topic'] = implode(',', $data['journal_topic']);
}else{
$update['journal_topic'] = $data['journal_topic'];
}
}
//新增字段期刊涵盖主题多个逗号分隔 chengxiaoling 20250507 end
if(isset($data['fee'])&&$data['fee']!=0){
$update['fee'] = $data['fee'];
}