Browse Source

大王椰出入库

cqpCow 1 year ago
parent
commit
5632f60024
1 changed files with 5 additions and 1 deletions
  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); //多少秒后过期
+            }
         }
     }
 }