cqpCow 1 жил өмнө
parent
commit
5632f60024

+ 5 - 1
app/Service/InOutOptionService.php

@@ -112,7 +112,11 @@ class InOutOptionService extends Service
             if(Redis::exists($key)) Redis::del($key);
         }else{
             //通道门处在发货出库屏 设置55秒过期  前端50秒请求一次 更新标识时间
-            if (Redis::setnx($key, 1)) Redis::expire($key, 55); //多少秒后过期
+            if (Redis::setnx($key, 1)) {
+                Redis::expire($key, 55); //多少秒后过期
+            }else{
+                Redis::expire($key, 55); //多少秒后过期
+            }
         }
     }
 }