@@ -67,6 +67,6 @@ |
||
67 | 67 | { |
68 | 68 | $method = $payload->get('method'); |
69 | 69 | |
70 | - return str_replace('.', '_', $method).'_response'; |
|
70 | + return str_replace('.', '_', $method) . '_response'; |
|
71 | 71 | } |
72 | 72 | } |
@@ -56,7 +56,7 @@ |
||
56 | 56 | protected function getWechatId(array $params, Collection $payload): array |
57 | 57 | { |
58 | 58 | $config = get_wechat_config($params); |
59 | - $key = ($params['_type'] ?? 'mp').'_app_id'; |
|
59 | + $key = ($params['_type'] ?? 'mp') . '_app_id'; |
|
60 | 60 | |
61 | 61 | if ('app_app_id' === $key) { |
62 | 62 | $key = 'app_id'; |
@@ -39,7 +39,7 @@ |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | foreach ($this->detectApplication as $framework => $application) { |
42 | - $method = $framework.'Application'; |
|
42 | + $method = $framework . 'Application'; |
|
43 | 43 | |
44 | 44 | if (class_exists($application) && method_exists($this, $method) && $this->{$method}()) { |
45 | 45 | return; |
@@ -30,8 +30,8 @@ |
||
30 | 30 | throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS); |
31 | 31 | } |
32 | 32 | |
33 | - return 'v3/merchant-service/complaints-v2/'. |
|
34 | - $payload->get('complaint_id'). |
|
33 | + return 'v3/merchant-service/complaints-v2/' . |
|
34 | + $payload->get('complaint_id') . |
|
35 | 35 | '/update-refund-progress'; |
36 | 36 | } |
37 | 37 | } |
@@ -30,8 +30,8 @@ |
||
30 | 30 | throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS); |
31 | 31 | } |
32 | 32 | |
33 | - return 'v3/merchant-service/complaints-v2/'. |
|
34 | - $payload->get('complaint_id'). |
|
33 | + return 'v3/merchant-service/complaints-v2/' . |
|
34 | + $payload->get('complaint_id') . |
|
35 | 35 | '/complete'; |
36 | 36 | } |
37 | 37 | } |
@@ -35,6 +35,6 @@ |
||
35 | 35 | throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS); |
36 | 36 | } |
37 | 37 | |
38 | - return 'v3/merchant-service/complaints-v2/'.$payload->get('complaint_id'); |
|
38 | + return 'v3/merchant-service/complaints-v2/' . $payload->get('complaint_id'); |
|
39 | 39 | } |
40 | 40 | } |
@@ -24,6 +24,6 @@ |
||
24 | 24 | |
25 | 25 | protected function getUri(Rocket $rocket): string |
26 | 26 | { |
27 | - return 'v3/merchant-service/complaints-v2?'.$rocket->getPayload()->query(); |
|
27 | + return 'v3/merchant-service/complaints-v2?' . $rocket->getPayload()->query(); |
|
28 | 28 | } |
29 | 29 | } |
@@ -30,8 +30,8 @@ |
||
30 | 30 | throw new InvalidParamsException(Exception::MISSING_NECESSARY_PARAMS); |
31 | 31 | } |
32 | 32 | |
33 | - return 'v3/merchant-service/complaints-v2/'. |
|
34 | - $payload->get('complaint_id'). |
|
33 | + return 'v3/merchant-service/complaints-v2/' . |
|
34 | + $payload->get('complaint_id') . |
|
35 | 35 | '/response'; |
36 | 36 | } |
37 | 37 | } |
@@ -38,8 +38,8 @@ |
||
38 | 38 | |
39 | 39 | $payload->forget('complaint_id'); |
40 | 40 | |
41 | - return 'v3/merchant-service/complaints-v2/'. |
|
42 | - $complaintId. |
|
43 | - '/negotiation-historys?'.$payload->query(); |
|
41 | + return 'v3/merchant-service/complaints-v2/' . |
|
42 | + $complaintId . |
|
43 | + '/negotiation-historys?' . $payload->query(); |
|
44 | 44 | } |
45 | 45 | } |