|
@@ -91,7 +91,7 @@ class Party extends Common
|
|
|
$where["user_id"] = $user_id;
|
|
|
$where["room_type"] = $room_type;
|
|
|
$sqlPartyInfo = $partyModel->where($where)->find();
|
|
|
- if($sqlPartyInfo["status"] == 0){
|
|
|
+ if(!empty($sqlPartyInfo) && $sqlPartyInfo["status"] == 0){
|
|
|
// 清楚对应的记录
|
|
|
$redis->del($this->roomTypeArr[$room_type]."_".$sqlPartyInfo["id"]);
|
|
|
// 删除派对记录
|