gemercheung 3 years ago
parent
commit
7d39bcb4ec
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/controller/room/index.js

+ 1 - 0
src/controller/room/index.js

@@ -93,6 +93,7 @@ export class RoomController extends BasicController {
         console.log("this.userId", this.user.userId);
         this.logger.info("房间已存助手", assistantId, this.roomId);
         userObj.isAssistant = Number(this.user.userId) === Number(assistantId) ? 1 : 0;
+        userObj.order = Number(this.user.userId) === Number(assistantId) ? 1 : 2;
         // if (assistantId) {
         //   this.logger.info("已存在默认助手变更:" + "room助手ID: " + assistantId + " userId: " + this.user.userId);
         // }