修复:日报上传附件,编辑删除附件后附件还存在问题修复

This commit is contained in:
HDM58\hdm58 2024-01-13 15:39:19 +08:00
parent 7c134b07b3
commit a2a8511dc6

View File

@ -150,7 +150,7 @@ class Work extends BaseController
->order('wf.create_time desc')
->where(['wf.wid' => $id])
->select()->toArray();
$interfix_ids = array_column($file_array, 'file_id');
$interfix_ids = array_column($file_array, 'id');
$detail['file_ids'] = implode(",", $interfix_ids);
$type = $detail['type'];
View::assign('file_array', $file_array);