From c966ffba9dfee0ca6132730d81dd595544e9c2e0 Mon Sep 17 00:00:00 2001 From: vilson <545522390@qq.com> Date: Sun, 16 Jun 2019 06:02:44 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=AE=BE=E7=BD=AE=E5=BC=80?= =?UTF-8?q?=E5=A7=8B=E6=97=B6=E9=97=B4=E4=BB=BB=E5=8A=A1=E5=8A=A8=E6=80=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: vilson <545522390@qq.com> --- application/common/Model/Task.php | 6 ++++++ application/project/behavior/Task.php | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/application/common/Model/Task.php b/application/common/Model/Task.php index b0aacf1..cfc7fd2 100644 --- a/application/common/Model/Task.php +++ b/application/common/Model/Task.php @@ -110,6 +110,12 @@ class Task extends CommonModel if (isset($data['pri'])) { $type = 'pri'; } + if (isset($data['begin_time'])) { + $type = 'setBeginTime'; + if (!$data['begin_time']) { + $type = 'clearBeginTime'; + } + } if (isset($data['end_time'])) { $type = 'setEndTime'; if (!$data['end_time']) { diff --git a/application/project/behavior/Task.php b/application/project/behavior/Task.php index 15aece1..ee8c185 100644 --- a/application/project/behavior/Task.php +++ b/application/project/behavior/Task.php @@ -114,6 +114,14 @@ class Task $icon = 'user-delete'; $remark = '移除了参与者 ' . $toMember['name']; break; + case 'setBeginTime': + $icon = 'calendar'; + $remark = '更新开始时间为 ' . date('m月d日 H:i', strtotime($task['begin_time'])); + break; + case 'clearBeginTime': + $icon = 'calendar'; + $remark = '清除了开始时间 '; + break; case 'setEndTime': $icon = 'calendar'; $remark = '更新截止时间为 ' . date('m月d日 H:i', strtotime($task['end_time']));