feat(haichao): 新增聚水潭ERP集成功能

- 新增聚水潭回调接口及事件处理机制
- 添加聚水潭商品、订单、售后同步任务
- 实现聚水潭订单推送及售后状态同步
- 新增手动同步聚水潭商品功能
- 在各路由组添加聚水潭中间件支持
This commit is contained in:
2026-04-01 11:55:18 +08:00
parent 359e9eef48
commit 7e422335e4
30 changed files with 2601 additions and 37 deletions

View File

@@ -0,0 +1,21 @@
<?php
namespace app\haichao\task;
use app\haichao\HaichaoJstServices;
use crmeb\interfaces\ListenerInterface;
use crmeb\utils\Cron;
use think\facade\Log;
class JstSyncTask extends Cron implements ListenerInterface
{
public function handle($event): void
{
return;
$this->tick(20000, function () {
Log::info('jst.task.product.tick');
HaichaoJstServices::getServices()->getSyncProduct()->syncProduct();
Log::info('jst.task.product.tick.done');
});
}
}