feat(haichao): 新增聚水潭ERP集成功能
- 新增聚水潭回调接口及事件处理机制 - 添加聚水潭商品、订单、售后同步任务 - 实现聚水潭订单推送及售后状态同步 - 新增手动同步聚水潭商品功能 - 在各路由组添加聚水潭中间件支持
This commit is contained in:
@@ -4,6 +4,7 @@ namespace crmeb\services\erp\storage\jushuitan;
|
||||
|
||||
use crmeb\services\erp\AccessToken;
|
||||
use crmeb\services\erp\storage\Jushuitan;
|
||||
use think\facade\Log;
|
||||
|
||||
class Product extends Jushuitan
|
||||
{
|
||||
@@ -96,7 +97,9 @@ class Product extends Jushuitan
|
||||
$params = $this->getParams($biz);
|
||||
|
||||
//请求平台接口
|
||||
Log::info('jst.api.product.syncProduct.request', ['url' => $url, 'biz' => $biz]);
|
||||
$request = $this->postRequest($url, $params);
|
||||
Log::info('jst.api.product.syncProduct.response', ['code' => $request['code'] ?? null, 'msg' => $request['msg'] ?? null]);
|
||||
|
||||
//获取ERP商品信息
|
||||
return $request["data"];
|
||||
@@ -121,7 +124,9 @@ class Product extends Jushuitan
|
||||
$params = $this->getParams($biz);
|
||||
|
||||
//请求平台接口
|
||||
Log::info('jst.api.product.syncStock.request', ['url' => $url, 'biz' => $biz]);
|
||||
$request = $this->postRequest($url, $params);
|
||||
Log::info('jst.api.product.syncStock.response', ['code' => $request['code'] ?? null, 'msg' => $request['msg'] ?? null]);
|
||||
return $request["data"];
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user