xiongzhu %!s(int64=2) %!d(string=hai) anos
pai
achega
0a14176fe8
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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({