xiongzhu 2 年 前
コミット
0a14176fe8
1 ファイル変更1 行追加1 行削除
  1. 1 1
      src/game/game.service.ts

+ 1 - 1
src/game/game.service.ts

@@ -420,7 +420,7 @@ export class GameService implements OnModuleInit {
         const formatedDatatime = this.formatDatetime(date, time)
 
         if (newCharactor) {
-            if (charactors.find((i) => i.danmuUserId === newCharactor.danmuUserId)) {
+            if (newCharactor.danmuUserId && charactors.find((i) => i.danmuUserId === newCharactor.danmuUserId)) {
                 newCharactor = null
             } else {
                 newCharactor = new Charactor({