|
@@ -91,8 +91,9 @@ export class RoomController extends BasicController {
|
|
|
|
|
|
const userObj = { ...this.user, onlineStatus: 1, isConnected: true, order };
|
|
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.isHoster(this.user.role)) {
|
|
if (assistantId && this.userId !== assistantId && !this.isHoster(this.user.role)) {
|
|
- this.logger.info("已存在用户并不是该用户:", this.user);
|
|
|
|
|
|
+ this.logger.info("已存在默认助手变更:" + "room助手ID:" assistantId +"userId: " + this.userId);
|
|
userObj.role = "customer";
|
|
userObj.role = "customer";
|
|
}
|
|
}
|
|
this.logger.info("update-user-info:", userObj);
|
|
this.logger.info("update-user-info:", userObj);
|