Passed
Push — master ( 3683c6...3d7940 )
by Songda
03:28 queued 01:23
created
src/Plugin/Alipay/V2/ResponsePlugin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,14 +28,14 @@
 block discarded – undo
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(
Please login to merge, or discard this patch.