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']));