[notice]只有新增时写入create_by

This commit is contained in:
2025-06-25 22:25:51 +08:00
parent 49c8de54c2
commit 87c27c94b9

View File

@ -67,7 +67,9 @@ class Broadcast extends Controller
} }
unset($vo['to']); unset($vo['to']);
} }
if (empty($vo['id'])) {
$vo['create_by'] = session('user.id'); $vo['create_by'] = session('user.id');
}
} else { } else {
$this->depts = StaffDept::items(); $this->depts = StaffDept::items();
$this->types = NoticeBroadcast::types(); $this->types = NoticeBroadcast::types();