Explorar o código

添加同步快递信息日志
修改同步初始化日期

ANG YU %!s(int64=5) %!d(string=hai) anos
pai
achega
30e07fa10c

+ 2 - 0
app/Console/Commands/SyncOrderPackageLogisticRouteTask.php

@@ -2,6 +2,7 @@
 
 
 namespace App\Console\Commands;
 namespace App\Console\Commands;
 
 
+use App\Services\LogService;
 use App\Services\OrderPackageReceivedSyncService;
 use App\Services\OrderPackageReceivedSyncService;
 use Illuminate\Console\Command;
 use Illuminate\Console\Command;
 
 
@@ -38,6 +39,7 @@ class SyncOrderPackageLogisticRouteTask extends Command
      */
      */
     public function handle()
     public function handle()
     {
     {
+        LogService::log(__CLASS__,"同步快递信息",'');
         ini_set('memory_limit','2226M');
         ini_set('memory_limit','2226M');
         (new OrderPackageReceivedSyncService)->syncLogisticRoute();
         (new OrderPackageReceivedSyncService)->syncLogisticRoute();
     }
     }

+ 1 - 1
config/api_logistic.php

@@ -106,6 +106,6 @@ return [
         'x-appKey' => 'c51c718eb899e9f706979',
         'x-appKey' => 'c51c718eb899e9f706979',
         'appSecret' => '9f664e3ab08049874aa417720840161a',
         'appSecret' => '9f664e3ab08049874aa417720840161a',
     ],
     ],
-    'init_date' => '2021-01-25 23:59:59',
+    'init_date' => '2021-03-21 23:59:59',
     'days' => 7,
     'days' => 7,
 ];
 ];