作者 竞泽

alter:去掉测试代码

... ... @@ -17,7 +17,7 @@
},
"autoload": {
"psr-4": {
"lackoxygen\\TopWarehouse\\": "/src/"
"lackoxygen\\TopWarehouse\\": "src/"
}
}
}
... ...
<?php
return [
'appKey' => '1000370173100021',
'appSecret' => 'dOsDS9ycaIWyD+4jKywnRw==',
'url' => 'http://ews-test.topgoods.mobi',
'options' => [
'app_key' => '',
'app_secret' => '',
'options' => [
'client' => [
'time' => 60,
'retry' => 0
]
'base_uri' => '',
'time' => 30,
],
'retry' => 1
]
];
... ...
... ... @@ -26,19 +26,7 @@ class Client implements ClientInterface
{
$this->request = $request();
//$this->config = config(TopWarehouseServiceProvider::CONFIG_NAME);
$this->config = [
'app_key' => '1000370173100021',
'app_secret' => 'dOsDS9ycaIWyD+4jKywnRw==',
'options' => [
'client' => [
'base_uri' => 'http://ews-test.topgoods.mobi',
'time' => 10,
],
'retry' => 1
]
];
$this->config = config(TopWarehouseServiceProvider::CONFIG_NAME);
$clientOption = \Arr::get($this->config, 'options.client', []);
... ...