@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | 'product_code' => 'FACE_TO_FACE_PAYMENT', |
40 | 40 | ], $params); |
41 | 41 | $this->app->setEndpointConfig($method, [ |
42 | - 'notify_url' => $this->app['config']->get('notify_url'), |
|
42 | + 'notify_url' => $this->app[ 'config' ]->get('notify_url'), |
|
43 | 43 | ]); |
44 | 44 | |
45 | 45 | return $this->request($method, [ |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | { |
63 | 63 | $method = 'alipay.trade.create'; |
64 | 64 | $this->app->setEndpointConfig($method, [ |
65 | - 'notify_url' => $this->app['config']->get('notify_url'), |
|
65 | + 'notify_url' => $this->app[ 'config' ]->get('notify_url'), |
|
66 | 66 | ]); |
67 | 67 | |
68 | 68 | return $this->request($method, [ |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | { |
86 | 86 | $method = 'alipay.trade.precreate'; |
87 | 87 | $this->app->setEndpointConfig($method, [ |
88 | - 'notify_url' => $this->app['config']->get('notify_url'), |
|
88 | + 'notify_url' => $this->app[ 'config' ]->get('notify_url'), |
|
89 | 89 | ]); |
90 | 90 | |
91 | 91 | return $this->request($method, [ |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | return !($this->checkEmpty($value)); |
119 | 119 | }); |
120 | 120 | $this->app->setEndpointConfig($method, [ |
121 | - 'notify_url' => $this->app['config']->get('notify_url'), |
|
121 | + 'notify_url' => $this->app[ 'config' ]->get('notify_url'), |
|
122 | 122 | ]); |
123 | 123 | |
124 | 124 | return $this->request($method, [ |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | * @throws \EasyAlipay\Kernel\Exceptions\InvalidSignException |
141 | 141 | * @throws \WannanBigPig\Supports\Exceptions\InvalidArgumentException |
142 | 142 | */ |
143 | - public function refund(string $tradeNo, $amount, string $outTradeNo = null, array $params = []) |
|
143 | + public function refund(string $tradeNo, $amount, string $outTradeNo = null, array $params = [ ]) |
|
144 | 144 | { |
145 | 145 | $params = array_merge(array_filter([ |
146 | 146 | 'trade_no' => $tradeNo, |
@@ -225,9 +225,9 @@ discard block |
||
225 | 225 | */ |
226 | 226 | public function orderSettle(string $outRequestNo, string $tradeNo, array $royaltyParameters, string $operatorId = null) |
227 | 227 | { |
228 | - $royalty = []; |
|
228 | + $royalty = [ ]; |
|
229 | 229 | if (count($royaltyParameters) === count($royaltyParameters, COUNT_RECURSIVE)) { |
230 | - $royalty[0] = $royaltyParameters; |
|
230 | + $royalty[ 0 ] = $royaltyParameters; |
|
231 | 231 | } else { |
232 | 232 | $royalty = $royaltyParameters; |
233 | 233 | } |
@@ -272,7 +272,7 @@ discard block |
||
272 | 272 | }); |
273 | 273 | |
274 | 274 | if (!($this->checkEmpty($orderBizInfo))) { |
275 | - $params['order_biz_info'] = json_encode(['status' => $orderBizInfo]); |
|
275 | + $params[ 'order_biz_info' ] = json_encode([ 'status' => $orderBizInfo ]); |
|
276 | 276 | } |
277 | 277 | return $this->request('alipay.trade.orderinfo.sync', [ |
278 | 278 | 'biz_content' => $params, |