mirror of
https://gitee.com/hzchunfen/erp.git
synced 2025-11-30 22:20:45 +00:00
feat: #10000 请求异常返回优化
This commit is contained in:
parent
e3f678ece4
commit
456943326d
@ -154,9 +154,6 @@ abstract class BusinessClient
|
||||
}
|
||||
$log->save();
|
||||
}
|
||||
if (isset($res['error_response'])) {
|
||||
exit();
|
||||
}
|
||||
|
||||
return $res;
|
||||
}
|
||||
|
||||
@ -119,8 +119,12 @@ class KuaiTuanTuan extends BusinessClient
|
||||
}
|
||||
$publicParams = array_merge($publicParams, $appendParams);
|
||||
$publicParams['sign'] = $this->getSign($publicParams);
|
||||
$res = $this->formDataPostRequest($url, $publicParams);
|
||||
if (isset($res['error_response'])) {
|
||||
throw new \RuntimeException($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