@@ -57,7 +57,7 @@ |
||
57 | 57 | 'sub_mch_id' => '', |
58 | 58 | // 选填-微信公钥证书路径, optional,强烈建议 php-fpm 模式下配置此参数 |
59 | 59 | 'wechat_public_cert_path' => [ |
60 | - '45F59D4DABF31918AFCEC556D5D2C6E376675D57' => __DIR__.'/Cert/wechatPublicKey.crt', |
|
60 | + '45F59D4DABF31918AFCEC556D5D2C6E376675D57' => __DIR__ . '/Cert/wechatPublicKey.crt', |
|
61 | 61 | ], |
62 | 62 | // 选填-默认为正常模式。可选为: MODE_NORMAL, MODE_SERVICE |
63 | 63 | 'mode' => Pay::MODE_NORMAL, |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | { |
23 | 23 | if ($this->app instanceof Application && $this->app->runningInConsole()) { |
24 | 24 | $this->publishes([ |
25 | - dirname(__DIR__).'/config/pay.php' => config_path('pay.php'), ], |
|
25 | + dirname(__DIR__) . '/config/pay.php' => config_path('pay.php'), ], |
|
26 | 26 | 'laravel-pay' |
27 | 27 | ); |
28 | 28 | } |
@@ -42,27 +42,27 @@ discard block |
||
42 | 42 | */ |
43 | 43 | public function register() |
44 | 44 | { |
45 | - $this->mergeConfigFrom(dirname(__DIR__).'/config/pay.php', 'pay'); |
|
45 | + $this->mergeConfigFrom(dirname(__DIR__) . '/config/pay.php', 'pay'); |
|
46 | 46 | |
47 | 47 | Pay::config(config('pay')); |
48 | 48 | |
49 | - $this->app->singleton('pay.alipay', function () { |
|
49 | + $this->app->singleton('pay.alipay', function() { |
|
50 | 50 | return Pay::alipay(); |
51 | 51 | }); |
52 | 52 | |
53 | - $this->app->singleton('pay.wechat', function () { |
|
53 | + $this->app->singleton('pay.wechat', function() { |
|
54 | 54 | return Pay::wechat(); |
55 | 55 | }); |
56 | 56 | |
57 | - $this->app->singleton('pay.unipay', function () { |
|
57 | + $this->app->singleton('pay.unipay', function() { |
|
58 | 58 | return Pay::unipay(); |
59 | 59 | }); |
60 | 60 | |
61 | - $this->app->singleton('pay.douyin', function () { |
|
61 | + $this->app->singleton('pay.douyin', function() { |
|
62 | 62 | return Pay::douyin(); |
63 | 63 | }); |
64 | 64 | |
65 | - $this->app->singleton('pay.jsb', function () { |
|
65 | + $this->app->singleton('pay.jsb', function() { |
|
66 | 66 | return Pay::jsb(); |
67 | 67 | }); |
68 | 68 | } |
@@ -76,6 +76,6 @@ discard block |
||
76 | 76 | */ |
77 | 77 | public function provides() |
78 | 78 | { |
79 | - return ['pay.alipay', 'pay.wechat', 'pay.unipay', 'pay.douyin', 'pay.jsb']; |
|
79 | + return [ 'pay.alipay', 'pay.wechat', 'pay.unipay', 'pay.douyin', 'pay.jsb' ]; |
|
80 | 80 | } |
81 | 81 | } |