@@ -28,14 +28,14 @@ |
||
28 | 28 | |
29 | 29 | $destination = $rocket->getDestination(); |
30 | 30 | $payload = $rocket->getPayload(); |
31 | - $resultKey = str_replace('.', '_', $payload->get('method')).'_response'; |
|
31 | + $resultKey = str_replace('.', '_', $payload->get('method')) . '_response'; |
|
32 | 32 | |
33 | 33 | if (should_do_http_request($rocket->getDirection()) && $destination instanceof Collection) { |
34 | 34 | $sign = $destination->get('sign', ''); |
35 | 35 | $response = $destination->get($resultKey, $destination->all()); |
36 | 36 | |
37 | 37 | if (empty($sign) && '10000' !== ($response['code'] ?? 'null')) { |
38 | - throw new InvalidResponseException(Exception::RESPONSE_BUSINESS_CODE_WRONG, '支付宝网关响应异常: '.($response['sub_msg'] ?? $response['msg'] ?? '未知错误,请查看支付宝原始响应'), $rocket->getDestination()); |
|
38 | + throw new InvalidResponseException(Exception::RESPONSE_BUSINESS_CODE_WRONG, '支付宝网关响应异常: ' . ($response['sub_msg'] ?? $response['msg'] ?? '未知错误,请查看支付宝原始响应'), $rocket->getDestination()); |
|
39 | 39 | } |
40 | 40 | |
41 | 41 | $rocket->setDestination(new Collection(array_merge( |