diff --git a/application/common/Model/TaskMember.php b/application/common/Model/TaskMember.php index 9b81de7..a8b4ec0 100644 --- a/application/common/Model/TaskMember.php +++ b/application/common/Model/TaskMember.php @@ -33,7 +33,10 @@ class TaskMember extends CommonModel } $currentMember = getCurrentMember(); $taskExecutor = self::where(['is_executor' => 1, 'task_code' => $taskCode])->find(); //原执行者 - + if ($taskExecutor['member_code'] == $memberCode) { + //已经是本人 + return true; + } self::update(['is_executor' => 0], ['task_code' => $taskCode]); if ($memberCode) { $hasJoined = self::where(['member_code' => $memberCode, 'task_code' => $taskCode])->find();