|
@@ -91,7 +91,12 @@ class Party extends Common
|
|
|
$where["user_id"] = $user_id;
|
|
|
$where["room_type"] = $room_type;
|
|
|
$sqlPartyInfo = $partyModel->where($where)->find();
|
|
|
-
|
|
|
+ if($sqlPartyInfo["status"] == 0){
|
|
|
+
|
|
|
+ $redis->del($this->roomTypeArr[$room_type]."_".$sqlPartyInfo["id"]);
|
|
|
+
|
|
|
+ \app\common\model\Party::where('id',$sqlPartyInfo["id"])->delete();
|
|
|
+ }
|
|
|
if(!$sqlPartyInfo) {
|
|
|
$partylimit = config("site.roomLimit");
|
|
|
$partycount = $partyModel->where(['is_close'=>0])->count("id");
|
|
@@ -195,7 +200,7 @@ class Party extends Common
|
|
|
|
|
|
\app\common\model\Party::where('id',$sqlPartyInfo["id"])->delete();
|
|
|
|
|
|
-
|
|
|
+ $this->error("创建失败,请重试");
|
|
|
}
|
|
|
|
|
|
|