feat: add kuaidi100 logistics sync

This commit is contained in:
wushumin
2026-05-26 17:08:33 +08:00
parent 09d9fcbe69
commit a5f00d7e31
31 changed files with 2596 additions and 67 deletions

View File

@@ -0,0 +1,26 @@
<?php
namespace app\process;
use app\support\OrderLogisticsSyncService;
use support\Log;
use Workerman\Timer;
class Kuaidi100LogisticsSyncProcess
{
public function __construct()
{
Timer::add(600, [$this, 'syncDue'], [], true);
}
public function syncDue(): void
{
try {
(new OrderLogisticsSyncService())->syncDue(50);
} catch (\Throwable $e) {
Log::warning('kuaidi100 logistics sync process failed', [
'message' => $e->getMessage(),
]);
}
}
}