Sfoglia il codice sorgente

测试助手---debug

gemercheung 3 anni fa
parent
commit
bc97e45781
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      src/controller/room/index.js

+ 4 - 4
src/controller/room/index.js

@@ -93,11 +93,11 @@ export class RoomController extends BasicController {
       const assistantId = await this.roomAssistant.getRoomAssistant(this.roomId);
       if (!this.isHoster(this.user.role)) {
         console.log("assistantId", assistantId);
-        console.log("this.userId", this.userId);
-        this.logger.info("默认变更条件:" + (assistantId && Number(this.userId) !== Number(assistantId)));
+        console.log("this.userId", this.user.userId);
+        this.logger.info("默认变更条件:" + (assistantId && Number(this.user.userId) !== Number(assistantId)));
 
-        if (assistantId && Number(this.userId) !== Number(assistantId)) {
-          this.logger.info("已存在默认助手变更:" + "room助手ID: " + assistantId + " userId: " + this.userId);
+        if (assistantId && Number(this.user.userId) !== Number(assistantId)) {
+          this.logger.info("已存在默认助手变更:" + "room助手ID: " + assistantId + " userId: " + this.user.userId);
           userObj.role = "customer";
         }
       }