Explorar o código

订单同步添加开关

ajun %!s(int64=5) %!d(string=hai) anos
pai
achega
40f10ab655
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  1. 2 1
      app/Console/Commands/SyncWMSOrderTask.php

+ 2 - 1
app/Console/Commands/SyncWMSOrderTask.php

@@ -39,7 +39,7 @@ class SyncWMSOrderTask extends Command
     public function handle()
     {
         $is_enabled= config('sync.order_sync.cache_prefix.enabled');
-        if(!$is_enabled)return;
+        if($is_enabled=='false')return;
         $this->syncCreatedOrder();
         $this->syncUpdatedOrder();
     }
@@ -74,6 +74,7 @@ class SyncWMSOrderTask extends Command
             $orderService->pushOrderCache($newest_orders,$prefixKey,$hasKey,$newest_list);              //  添加缓存
             $orderService->setOrderSyncAt($newest,$last_order->addtime,count($orderHeaders)>0);   //  更新时间
         }
+
     }
 
     public function syncUpdatedOrder()