xiongzhu 2 лет назад
Родитель
Сommit
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({