去除上报监管平台dump打印,增加log记录
This commit is contained in:
parent
2005b6eefc
commit
25a868ad64
@ -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));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user