|
@@ -88,14 +88,14 @@ export class RoomController extends BasicController {
|
|
order = 2;
|
|
order = 2;
|
|
break;
|
|
break;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ const userObj = { ...this.user, onlineStatus: 1, isConnected: true, order };
|
|
const assistantId = this.roomAssistant.getRoomAssistant(this.roomId);
|
|
const assistantId = this.roomAssistant.getRoomAssistant(this.roomId);
|
|
- if (assistantId && this.userId !== assistantId) {
|
|
|
|
- this.logger.info("已存在用户并不是该用户:", this.user.role);
|
|
|
|
|
|
+ if (assistantId && this.userId !== assistantId && !this.isHoster(this.user.role)) {
|
|
|
|
+ this.logger.info("已存在用户并不是该用户:", this.user);
|
|
userObj.role = "customer";
|
|
userObj.role = "customer";
|
|
}
|
|
}
|
|
- const userObj = { ...this.user, onlineStatus: 1, isConnected: true, order };
|
|
|
|
this.logger.info("update-user-info:", userObj);
|
|
this.logger.info("update-user-info:", userObj);
|
|
-
|
|
|
|
updateUser(this.userId, userObj);
|
|
updateUser(this.userId, userObj);
|
|
// this.sysUsers.push(this.user);
|
|
// this.sysUsers.push(this.user);
|
|
// 只有来源于小程序用户信息才记录到redis
|
|
// 只有来源于小程序用户信息才记录到redis
|