作者 竞泽

alter:去掉测试代码

@@ -17,7 +17,7 @@ @@ -17,7 +17,7 @@
17 }, 17 },
18 "autoload": { 18 "autoload": {
19 "psr-4": { 19 "psr-4": {
20 - "lackoxygen\\TopWarehouse\\": "/src/" 20 + "lackoxygen\\TopWarehouse\\": "src/"
21 } 21 }
22 } 22 }
23 } 23 }
1 <?php 1 <?php
2 2
3 return [ 3 return [
4 - 'appKey' => '1000370173100021',  
5 - 'appSecret' => 'dOsDS9ycaIWyD+4jKywnRw==',  
6 - 'url' => 'http://ews-test.topgoods.mobi',  
7 - 'options' => [ 4 + 'app_key' => '',
  5 + 'app_secret' => '',
  6 + 'options' => [
8 'client' => [ 7 'client' => [
9 - 'time' => 60,  
10 - 'retry' => 0  
11 - ] 8 + 'base_uri' => '',
  9 + 'time' => 30,
  10 + ],
  11 + 'retry' => 1
12 ] 12 ]
13 ]; 13 ];
@@ -26,19 +26,7 @@ class Client implements ClientInterface @@ -26,19 +26,7 @@ class Client implements ClientInterface
26 { 26 {
27 $this->request = $request(); 27 $this->request = $request();
28 28
29 - //$this->config = config(TopWarehouseServiceProvider::CONFIG_NAME);  
30 -  
31 - $this->config = [  
32 - 'app_key' => '1000370173100021',  
33 - 'app_secret' => 'dOsDS9ycaIWyD+4jKywnRw==',  
34 - 'options' => [  
35 - 'client' => [  
36 - 'base_uri' => 'http://ews-test.topgoods.mobi',  
37 - 'time' => 10,  
38 - ],  
39 - 'retry' => 1  
40 - ]  
41 - ]; 29 + $this->config = config(TopWarehouseServiceProvider::CONFIG_NAME);
42 30
43 $clientOption = \Arr::get($this->config, 'options.client', []); 31 $clientOption = \Arr::get($this->config, 'options.client', []);
44 32