lrf402788946 4 năm trước cách đây
mục cha
commit
e4e02870df
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  1. 1 0
      app/service/liveroom.js

+ 1 - 0
app/service/liveroom.js

@@ -30,6 +30,7 @@ class LiveroomService extends CrudService {
   async personcount(data) {
     const { number, name, userid, type } = data;
     // 取出已经进入直播的用户列表
+    await this.app.redis.flushall(`liveroom${number}`);
     let list = await this.app.redis.get(`liveroom${number}`);
     console.group('group');
     console.table(list);