增加回调log

This commit is contained in:
2024-01-30 11:03:40 +08:00
parent 2005b6eefc
commit a065f5e3a5
10 changed files with 866 additions and 8 deletions
@@ -156,7 +156,6 @@ class regulatoryPlatform
];
$response = $this->httpRequest($this->api_url . '/wjw/upload/uploadFurtherConsult', $option);
dump($response);
if (isset($response['status'])) {
if ($response['status'] != 0) {
if (!empty($response['message'])) {
@@ -229,7 +228,7 @@ class regulatoryPlatform
$arg = array_merge($arg, $option);
}
Log::getInstance()->info(json_encode($arg,JSON_UNESCAPED_UNICODE));
Log::getInstance("regulatoryPlatform-httpRequest")->info(json_encode($arg,JSON_UNESCAPED_UNICODE));
$response = $this->client->post($path, $arg);
if ($response->getStatusCode() != '200') {
@@ -238,7 +237,7 @@ class regulatoryPlatform
}
$body = json_decode($response->getBody(), true);
Log::getInstance()->info(json_encode($body,JSON_UNESCAPED_UNICODE));
Log::getInstance("regulatoryPlatform-httpRequest")->info(json_encode($body,JSON_UNESCAPED_UNICODE));
if (empty($body)) {
// 返回值为空
throw new BusinessException(HttpEnumCode::getMessage(HttpEnumCode::SERVER_ERROR));