소스 검색

创建party,低级错误

lizhen_gitee 1 년 전
부모
커밋
c3bb6f1ba0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      application/api/controller/Party.php

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

@@ -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"]);
             // 删除派对记录