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

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

@@ -975,7 +975,9 @@ class Party extends Api
         $lsetList["notalk_time"] = 0;
 
         $hgetlist = $this->redis->hGet("party_manage_".$party_id,$user_id."-2");
-
+        if(!$hgetlist){
+            return $this->success("获取成功!",$lsetList);
+        }
         $hgetlist = unserialize($hgetlist);
         $restime = time() - intval($hgetlist["createtime"]);
         // 禁言