Browse Source

创建房间调试

zhangxiaobin 1 năm trước cách đây
mục cha
commit
c99b3e4eb0
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      application/api/controller/Party.php

+ 3 - 0
application/api/controller/Party.php

@@ -96,6 +96,9 @@ class Party extends Common
             $redis->del($this->roomTypeArr[$room_type]."_".$sqlPartyInfo["id"]);
             // 删除派对记录
             \app\common\model\Party::where('id',$sqlPartyInfo["id"])->delete();
+            $where["user_id"] = $user_id;
+            $where["room_type"] = $room_type;
+            $sqlPartyInfo = $partyModel->where($where)->find();
         }
         if(!$sqlPartyInfo) { // sql中不存在派对信息
             $partylimit = config("site.roomLimit");