From 87c27c94b9f8fe99a2eef0d3c83269a62092726a Mon Sep 17 00:00:00 2001 From: Jerry Yan <792602257@qq.com> Date: Wed, 25 Jun 2025 22:25:51 +0800 Subject: [PATCH] =?UTF-8?q?[notice]=E5=8F=AA=E6=9C=89=E6=96=B0=E5=A2=9E?= =?UTF-8?q?=E6=97=B6=E5=86=99=E5=85=A5create=5Fby?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controller/Broadcast.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/controller/Broadcast.php b/src/controller/Broadcast.php index 18e248d..8cf6bb8 100644 --- a/src/controller/Broadcast.php +++ b/src/controller/Broadcast.php @@ -67,7 +67,9 @@ class Broadcast extends Controller } unset($vo['to']); } - $vo['create_by'] = session('user.id'); + if (empty($vo['id'])) { + $vo['create_by'] = session('user.id'); + } } else { $this->depts = StaffDept::items(); $this->types = NoticeBroadcast::types();