修改gwall为fineex
This commit is contained in:
parent
499f51dc14
commit
23b3edbf8c
|
@ -13,17 +13,17 @@ return [
|
||||||
'shipper_code' => env('WMS_SHIPPER_CODE','BJPD'),
|
'shipper_code' => env('WMS_SHIPPER_CODE','BJPD'),
|
||||||
'warehouse_id' => env('WMS_WAREHOUSE_ID', 1),
|
'warehouse_id' => env('WMS_WAREHOUSE_ID', 1),
|
||||||
],
|
],
|
||||||
'gwall' => [
|
'fineex' => [
|
||||||
'base_uri' => env('GWALL_HOST', 'http://qimen.api.taobao.com/top/router/qmtest?'),
|
'base_uri' => env('FINEEX_HOST', 'http://qimen.api.taobao.com/router/qmtest?'),
|
||||||
// 'base_uri' => env('GWALL_HOST', 'http://qimenapi.tbsandbox.com/router/qimen/service?'),
|
// 'base_uri' => env('GWALL_HOST', 'http://qimenapi.tbsandbox.com/router/qimen/service?'),
|
||||||
'app_key' => env('GWALL_APP_KEY', '23152314'),
|
'app_key' => env('FINEEX_APP_KEY', '30469069'),
|
||||||
'app_secret' => env('GWALL_APP_SECRET', 'bjpdalog'),
|
'app_secret' => env('FINEEX_APP_SECRET', 'fe74d42121d20db341d29229c1179fe3'),
|
||||||
'customerId' => env('WMS_CUSTOMERID','BJPDmocker'),
|
'customerId' => env('FINEEX_CUSTOMERID','mockCustomerId'),
|
||||||
'version' => env('GWALL_VERSION', '2.0'),
|
'version' => env('FINEEX_VERSION', '2.0'),
|
||||||
'format' => 'xml',
|
'format' => 'xml',
|
||||||
'sign_method' => 'md5',
|
'sign_method' => 'md5',
|
||||||
'warehouse_code' => env('GWALL_WAREHOUSE_CODE', 'test0912'),
|
'warehouse_code' => env('FINEEX_WAREHOUSE_CODE', 'mockCustomerId'),
|
||||||
'shipper_code' => env('GWALL_SHIPPER_CODE', 'BJPD'),
|
'shipper_code' => env('FINEEX_SHIPPER_CODE', 'mockCustomerId'),
|
||||||
'warehouse_id' => env('GWALL_WAREHOUSE_ID', 18),
|
'warehouse_id' => env('FINEEX_WAREHOUSE_ID', 43),
|
||||||
],
|
],
|
||||||
];
|
];
|
||||||
|
|
|
@ -2,23 +2,23 @@
|
||||||
|
|
||||||
namespace PdWms;
|
namespace PdWms;
|
||||||
|
|
||||||
class GwallWms extends QimenWms
|
class FineexWms extends QimenWms
|
||||||
{
|
{
|
||||||
protected static $default_shop_name = '北京拍店';
|
protected static $default_shop_name = '北京拍店';
|
||||||
protected static $default_seller_nick = '北京拍店';
|
protected static $default_seller_nick = '北京拍店';
|
||||||
protected static $default_sender_name = '北京拍店';
|
protected static $default_sender_name = '北京拍店';
|
||||||
protected static $default_sender_mobile = '17606553430';
|
protected static $default_sender_mobile = '17606553430';
|
||||||
protected static $default_sender_province = '浙江省';
|
protected static $default_sender_province = '浙江省';
|
||||||
protected static $default_sender_city = '绍兴市';
|
protected static $default_sender_city = '嘉兴市';
|
||||||
protected static $default_sender_area = '诸暨市';
|
protected static $default_sender_area = '秀洲区';
|
||||||
protected static $default_sender_address = '王家湖路22号大壹云仓';
|
protected static $default_sender_address = '世通路86号';
|
||||||
protected static $default_zip_code = '000000';
|
protected static $default_zip_code = '000000';
|
||||||
|
|
||||||
protected $config = [];
|
protected $config = [];
|
||||||
|
|
||||||
public function __construct($config = null)
|
public function __construct($config = null)
|
||||||
{
|
{
|
||||||
$wmsConf = $config ?? (require(dirname(dirname(__FILE__)) . '/config/wms.php'))['gwall'];
|
$wmsConf = $config ?? (require(dirname(dirname(__FILE__)) . '/config/wms.php'))['fineex'];
|
||||||
parent::__construct($wmsConf);
|
parent::__construct($wmsConf);
|
||||||
}
|
}
|
||||||
}
|
}
|
|
@ -14,8 +14,8 @@ class WmsStrategy
|
||||||
case $config['xinyi']['warehouse_id']:
|
case $config['xinyi']['warehouse_id']:
|
||||||
$this->wmsClient = new XinyiWms($config['xinyi']);
|
$this->wmsClient = new XinyiWms($config['xinyi']);
|
||||||
break;
|
break;
|
||||||
case $config['gwall']['warehouse_id']:
|
case $config['fineex']['warehouse_id']:
|
||||||
$this->wmsClient = new GwallWms($config['gwall']);
|
$this->wmsClient = new FineexWms($config['fineex']);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
throw new \Exception('仓库不存在');
|
throw new \Exception('仓库不存在');
|
||||||
|
|
Loading…
Reference in New Issue
Block a user