lizhen_gitee 1 年之前
父节点
当前提交
529ab6d6ff
共有 1 个文件被更改,包括 3 次插入1 次删除
  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"]);
         // 禁言