From 23b3edbf8c1017a04d2350ac445f48c3b91cd898 Mon Sep 17 00:00:00 2001 From: ZweiCD <416931358@qq.com> Date: Mon, 13 Jul 2020 10:44:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9gwall=E4=B8=BAfineex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/wms.php | 18 +++++++++--------- src/{GwallWms.php => FineexWms.php} | 10 +++++----- src/WmsStrategy.php | 4 ++-- 3 files changed, 16 insertions(+), 16 deletions(-) rename src/{GwallWms.php => FineexWms.php} (68%) diff --git a/config/wms.php b/config/wms.php index 1b84660..e68e284 100644 --- a/config/wms.php +++ b/config/wms.php @@ -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), ], ]; diff --git a/src/GwallWms.php b/src/FineexWms.php similarity index 68% rename from src/GwallWms.php rename to src/FineexWms.php index 4420ef0..a6a2292 100644 --- a/src/GwallWms.php +++ b/src/FineexWms.php @@ -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); } } diff --git a/src/WmsStrategy.php b/src/WmsStrategy.php index f0ba06a..cf51135 100644 --- a/src/WmsStrategy.php +++ b/src/WmsStrategy.php @@ -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('仓库不存在');