mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-12-01 14:40:44 +00:00
commit
73cbf01bba
@ -154,9 +154,6 @@ abstract class BusinessClient
|
||||
}
|
||||
$log->save();
|
||||
}
|
||||
if (isset($res['error_response'])) {
|
||||
exit();
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
@ -119,8 +119,17 @@ class KuaiTuanTuan extends BusinessClient
|
||||
}
|
||||
$publicParams = array_merge($publicParams, $appendParams);
|
||||
$publicParams['sign'] = $this->getSign($publicParams);
|
||||
$res = $this->formDataPostRequest($url, $publicParams);
|
||||
if (isset($res['error_response'])) {
|
||||
// ToDo 重构异常处理
|
||||
if ('业务服务错误' === $res['error_response']['error_msg'] && '该店铺下不存在该商品' === $res['error_response']['sub_msg']) {
|
||||
BusinessGoodsSku::where('goods_id', $appendParams['goods_id'])->where('sku_id', $appendParams['sku_id'])->delete();
|
||||
} else {
|
||||
throw new \RuntimeException($res['error_response']['error_msg'] . ':' . $res['error_response']['error_msg']);
|
||||
}
|
||||
}
|
||||
|
||||
return $this->formDataPostRequest($url, $publicParams);
|
||||
return $res;
|
||||
}
|
||||
|
||||
public function downloadGoods($skuId)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user