perf: 优化标签操作日志

This commit is contained in:
kuaifan
2025-07-08 10:41:41 +08:00
parent 5f0fc78f30
commit b01a54437a
5 changed files with 189 additions and 95 deletions
+12 -1
View File
@@ -74,7 +74,18 @@ class ProjectUser extends AbstractModel
$item->project->name = "【{$name}】{$item->project->name}";
$item->project->save();
}
$item->project->addLog("移交项目身份", ['userid' => [$originalUserid, ' => ', $newUserid]]);
$item->project->addLog("移交项目身份", [
'change' => [
[
'type' => 'user',
'data' => $originalUserid
],
[
'type' => 'user',
'data' => $newUserid
],
],
]);
$item->project->syncDialogUser();
$projectIds[] = $item->project_id;
}