فهرست منبع

大王椰出入库

cqpCow 1 سال پیش
والد
کامیت
04aafbfd02
1فایلهای تغییر یافته به همراه4 افزوده شده و 2 حذف شده
  1. 4 2
      app/Service/InOutOptionService.php

+ 4 - 2
app/Service/InOutOptionService.php

@@ -98,9 +98,11 @@ class InOutOptionService extends Service
     public function setFhMessage($data,$site){
         $key = $data['device_id'] . self::Key;
         if(empty($data['fh'])){
-            if(Redis::exists(self::Key)) Redis::del(self::Key);
+            //通道门处在出入库屏 删除通道门在发货出库屏下的标识(如果存在)
+            if(Redis::exists($key)) Redis::del($key);
         }else{
-            if (Redis::setnx($key, 1)) Redis::expire($key, 60); //多少秒后过期
+            //通道门处在发货出库屏 设置55秒过期  前端50秒请求一次 更新标识时间
+            if (Redis::setnx($key, 1)) Redis::expire($key, 55); //多少秒后过期
         }
     }
 }