修改gwall为fineex

This commit is contained in:
ZweiCD 2020-07-13 10:44:15 +08:00
parent 499f51dc14
commit 23b3edbf8c
3 changed files with 16 additions and 16 deletions

View File

@ -13,17 +13,17 @@ return [
'shipper_code' => env('WMS_SHIPPER_CODE','BJPD'),
'warehouse_id' => env('WMS_WAREHOUSE_ID', 1),
],
'gwall' => [
'base_uri' => env('GWALL_HOST', 'http://qimen.api.taobao.com/top/router/qmtest?'),
'fineex' => [
'base_uri' => env('FINEEX_HOST', 'http://qimen.api.taobao.com/router/qmtest?'),
// 'base_uri' => env('GWALL_HOST', 'http://qimenapi.tbsandbox.com/router/qimen/service?'),
'app_key' => env('GWALL_APP_KEY', '23152314'),
'app_secret' => env('GWALL_APP_SECRET', 'bjpdalog'),
'customerId' => env('WMS_CUSTOMERID','BJPDmocker'),
'version' => env('GWALL_VERSION', '2.0'),
'app_key' => env('FINEEX_APP_KEY', '30469069'),
'app_secret' => env('FINEEX_APP_SECRET', 'fe74d42121d20db341d29229c1179fe3'),
'customerId' => env('FINEEX_CUSTOMERID','mockCustomerId'),
'version' => env('FINEEX_VERSION', '2.0'),
'format' => 'xml',
'sign_method' => 'md5',
'warehouse_code' => env('GWALL_WAREHOUSE_CODE', 'test0912'),
'shipper_code' => env('GWALL_SHIPPER_CODE', 'BJPD'),
'warehouse_id' => env('GWALL_WAREHOUSE_ID', 18),
'warehouse_code' => env('FINEEX_WAREHOUSE_CODE', 'mockCustomerId'),
'shipper_code' => env('FINEEX_SHIPPER_CODE', 'mockCustomerId'),
'warehouse_id' => env('FINEEX_WAREHOUSE_ID', 43),
],
];

View File

@ -2,23 +2,23 @@
namespace PdWms;
class GwallWms extends QimenWms
class FineexWms extends QimenWms
{
protected static $default_shop_name = '北京拍店';
protected static $default_seller_nick = '北京拍店';
protected static $default_sender_name = '北京拍店';
protected static $default_sender_mobile = '17606553430';
protected static $default_sender_province = '浙江省';
protected static $default_sender_city = '兴市';
protected static $default_sender_area = '诸暨市';
protected static $default_sender_address = '王家湖路22号大壹云仓';
protected static $default_sender_city = '兴市';
protected static $default_sender_area = '秀洲区';
protected static $default_sender_address = '世通路86号';
protected static $default_zip_code = '000000';
protected $config = [];
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);
}
}

View File

@ -14,8 +14,8 @@ class WmsStrategy
case $config['xinyi']['warehouse_id']:
$this->wmsClient = new XinyiWms($config['xinyi']);
break;
case $config['gwall']['warehouse_id']:
$this->wmsClient = new GwallWms($config['gwall']);
case $config['fineex']['warehouse_id']:
$this->wmsClient = new FineexWms($config['fineex']);
break;
default:
throw new \Exception('仓库不存在');