fix: 未领任务提醒机器人无须加入项目

This commit is contained in:
kuaifan 2024-10-18 22:00:15 +08:00
parent 3f5ac55753
commit 47a7876505

View File

@ -63,11 +63,6 @@ class UnclaimedTaskRemindTask extends AbstractTask
if (empty($botUser)) {
return;
}
if (!ProjectUser::whereUserid($botUser->userid)->whereProjectId($project->id)->exists()) {
$project->joinProject($botUser->userid);
$project->syncDialogUser();
}
//
WebSocketDialogMsg::sendMsg(null, $project->dialog_id, 'template', [
'type' => 'task_unclaimed',
'desc' => '任务待领取',