cqpCow 1 rok pred
rodič
commit
5632f60024
1 zmenil súbory, kde vykonal 5 pridanie a 1 odobranie
  1. 5 1
      app/Service/InOutOptionService.php

+ 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); //多少秒后过期
+            }
         }
     }
 }