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"] = "";