浏览代码

joinparty的问题

lizhen_gitee 1 年之前
父节点
当前提交
0f4f4bee25
共有 1 个文件被更改,包括 6 次插入1 次删除
  1. 6 1
      application/api/controller/Party.php

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

@@ -685,7 +685,12 @@ class Party extends Common
             $hgetlist = $redis->hGet("party_manage_".$party_id,$user_id."-".$i);
 
             $hgetlist = unserialize($hgetlist);
-            $restime = time() - intval($hgetlist["createtime"]);
+
+            if($hgetlist){
+                $restime = time() - intval($hgetlist["createtime"]);
+            }else{
+                $restime = 0;
+            }
 
             // 房管
             if($hgetlist && $i == 1) $lsetList["manage_restime"] = "";