@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | protected function getUri(Rocket $rocket): string |
| 13 | 13 | { |
| 14 | - return 'v3/bill/tradebill?'.http_build_query($rocket->getParams()); |
|
| 14 | + return 'v3/bill/tradebill?' . http_build_query($rocket->getParams()); |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | protected function getMethod(): string |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | { |
| 12 | 12 | protected function getUri(Rocket $rocket): string |
| 13 | 13 | { |
| 14 | - return 'v3/bill/fundflowbill?'.http_build_query($rocket->getParams()); |
|
| 14 | + return 'v3/bill/fundflowbill?' . http_build_query($rocket->getParams()); |
|
| 15 | 15 | } |
| 16 | 16 | |
| 17 | 17 | protected function getMethod(): string |
@@ -32,6 +32,6 @@ |
||
| 32 | 32 | |
| 33 | 33 | protected function getUri(Rocket $rocket): string |
| 34 | 34 | { |
| 35 | - return 'v3/transfer-detail/electronic-receipts?'.$rocket->getPayload()->query(); |
|
| 35 | + return 'v3/transfer-detail/electronic-receipts?' . $rocket->getPayload()->query(); |
|
| 36 | 36 | } |
| 37 | 37 | } |
@@ -25,7 +25,7 @@ discard block |
||
| 25 | 25 | 'prepayid' => $prepayId, |
| 26 | 26 | 'package' => 'Sign=WXPay', |
| 27 | 27 | 'noncestr' => Str::random(32), |
| 28 | - 'timestamp' => time().'', |
|
| 28 | + 'timestamp' => time() . '', |
|
| 29 | 29 | ]); |
| 30 | 30 | |
| 31 | 31 | $config->set('sign', $this->getSign($config, $rocket->getParams())); |
@@ -41,10 +41,10 @@ discard block |
||
| 41 | 41 | */ |
| 42 | 42 | protected function getSign(Collection $invokeConfig, array $params): string |
| 43 | 43 | { |
| 44 | - $contents = $invokeConfig->get('appid', '')."\n". |
|
| 45 | - $invokeConfig->get('timestamp', '')."\n". |
|
| 46 | - $invokeConfig->get('noncestr', '')."\n". |
|
| 47 | - $invokeConfig->get('prepayid', '')."\n"; |
|
| 44 | + $contents = $invokeConfig->get('appid', '') . "\n" . |
|
| 45 | + $invokeConfig->get('timestamp', '') . "\n" . |
|
| 46 | + $invokeConfig->get('noncestr', '') . "\n" . |
|
| 47 | + $invokeConfig->get('prepayid', '') . "\n"; |
|
| 48 | 48 | |
| 49 | 49 | return get_wechat_sign($params, $contents); |
| 50 | 50 | } |
@@ -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; |
@@ -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 | } |
@@ -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 | } |
@@ -33,9 +33,9 @@ |
||
| 33 | 33 | |
| 34 | 34 | protected function buildHtml(string $endpoint, Collection $payload): Response |
| 35 | 35 | { |
| 36 | - $sHtml = "<form id='pay_form' name='pay_form' action='".$endpoint."' method='POST'>"; |
|
| 36 | + $sHtml = "<form id='pay_form' name='pay_form' action='" . $endpoint . "' method='POST'>"; |
|
| 37 | 37 | foreach ($payload->all() as $key => $val) { |
| 38 | - $sHtml .= "<input type='hidden' name='".$key."' value='".$val."'/>"; |
|
| 38 | + $sHtml .= "<input type='hidden' name='" . $key . "' value='" . $val . "'/>"; |
|
| 39 | 39 | } |
| 40 | 40 | $sHtml .= "<input type='submit' value='ok' style='display:none;'></form>"; |
| 41 | 41 | $sHtml .= "<script>document.forms['pay_form'].submit();</script>"; |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | |
| 64 | 64 | $config = get_unipay_config($rocket->getParams()); |
| 65 | 65 | |
| 66 | - return Unipay::URL[$config['mode'] ?? Pay::MODE_NORMAL].$url; |
|
| 66 | + return Unipay::URL[$config['mode'] ?? Pay::MODE_NORMAL] . $url; |
|
| 67 | 67 | } |
| 68 | 68 | |
| 69 | 69 | protected function getHeaders(): array |