浏览代码

创建房间调整

zhangxiaobin 1 年之前
父节点
当前提交
9860a372f2
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      application/api/controller/Party.php

+ 2 - 2
application/api/controller/Party.php

@@ -189,14 +189,14 @@ class Party extends Common
 
         } else {
             if($sqlPartyInfo["is_close"] == 1) $this->error("该房间已被关闭!");
-            if($sqlPartyInfo["status"] == 0){
+            /*if($sqlPartyInfo["status"] == 0){//不清楚具体要做什么先注释
                 // 清楚对应的记录
                 $redis->del($this->roomTypeArr[$room_type]."_".$sqlPartyInfo["id"]);
                 // 删除派对记录
                 \app\common\model\Party::where('id',$sqlPartyInfo["id"])->delete();
 
                 $this->error("创建失败,请重试");
-            }
+            }*/
 //            if($sqlPartyInfo["status"] != 1) $this->error("该房间为预创建房间,请联系管理员正式开通!");
             // 如果是房主并且房间处于离线状态下激活
             if ($sqlPartyInfo['user_id'] != $user_id) {