作者 竞泽

docs

@@ -25,21 +25,19 @@ http://47.107.73.162:8099/lackoxygen/min-payment.git @@ -25,21 +25,19 @@ http://47.107.73.162:8099/lackoxygen/min-payment.git
25 ### 配置文件 25 ### 配置文件
26 26
27 ``` 27 ```
28 -发布暂时无法生成,手动copy到config 28 +php artisan vendor:publish --tag=lackoxygen-min-payment
29 ``` 29 ```
30 30
31 ### 示例 31 ### 示例
32 32
33 ``` 33 ```
34 - $min = new MinPayment();  
35 -  
36 - $ret = $min->identifyOrder(function (IdentifyOrder $realNameAuth) {  
37 - $realNameAuth->setName('hello');  
38 - $realNameAuth->setCid('5234235345x');  
39 - $realNameAuth->setOrderNo('2123');  
40 - $realNameAuth->setType(1); 34 + $ret = MinPaymentFacade::identifyOrder(static function (IdentifyOrder $identifyOrder) {
  35 + $identifyOrder->setType(1);
  36 + $identifyOrder->setOrderNo('订单号');
  37 + $identifyOrder->setCid('身份证');
  38 + $identifyOrder->setName('真实姓名');
41 }); 39 });
42 - 40 +
43 var_dump($ret->isSuccess()); 41 var_dump($ret->isSuccess());
44 ``` 42 ```
45 43
@@ -9,7 +9,7 @@ class MinPaymentProvider extends ServiceProvider @@ -9,7 +9,7 @@ class MinPaymentProvider extends ServiceProvider
9 public function boot() 9 public function boot()
10 { 10 {
11 $configPath = __DIR__ . '/../config/min-payment.php'; 11 $configPath = __DIR__ . '/../config/min-payment.php';
12 - $this->publishes([$configPath => config_path('min-payment.php')], 'lackoxygen'); 12 + $this->publishes([$configPath => config_path('min-payment.php')], 'lackoxygen-min-payment');
13 } 13 }
14 14
15 /** 15 /**
@@ -19,5 +19,4 @@ class MinPaymentProvider extends ServiceProvider @@ -19,5 +19,4 @@ class MinPaymentProvider extends ServiceProvider
19 { 19 {
20 return ['minPayment', MinPayment::class]; 20 return ['minPayment', MinPayment::class];
21 } 21 }
22 -  
23 } 22 }