Compare commits

..

18 Commits

Author SHA1 Message Date
赵杰
e40c2ebdde Merge branch 'feature/new_wms' into 'master'
B端订单推送增加备注

See merge request composer/php-wms-client!13
2021-05-13 10:32:50 +08:00
ZweiCD
50cfe5cc1c B端订单推送增加备注 2021-05-13 10:31:52 +08:00
赵杰
cd59de5206 Merge branch 'feature/new_wms' into 'master'
修改wms发货人信息

See merge request composer/php-wms-client!12
2020-10-12 11:43:21 +08:00
ZweiCD
0e415b46e8 修改wms发货人信息 2020-10-12 11:42:07 +08:00
赵杰
0d39edd856 Merge branch 'feature/new_wms' into 'master'
修改快递回传方法

See merge request composer/php-wms-client!11
2020-09-04 11:54:01 +08:00
ZweiCD
f8bd13f8df 修改快递回传方法 2020-09-04 11:53:17 +08:00
赵杰
712c27514c Merge branch 'feature/new_wms' into 'master'
修改默认物流配送方式

See merge request composer/php-wms-client!10
2020-08-28 10:38:12 +08:00
ZweiCD
01e03a2fce 修改默认物流配送方式 2020-08-28 10:37:09 +08:00
赵杰
6d7b4d5fde Merge branch 'feature/new_wms' into 'master'
修改销售单BC单判断

See merge request composer/php-wms-client!9
2020-08-27 17:49:41 +08:00
ZweiCD
4503cca8bd update 2020-08-27 17:44:21 +08:00
赵杰
06b07b8751 Merge branch 'feature/new_wms' into 'master'
取消订单增加货主参数,bc单推送条件修改

See merge request composer/php-wms-client!8
2020-08-17 14:10:06 +08:00
赵杰
2866335f11 Merge branch 'feature/new_wms' into 'master'
增加日志

See merge request composer/php-wms-client!7
2020-07-29 11:51:19 +08:00
郑翀
06043d19f9 Merge branch 'feature/new_wms' into 'master'
修改跨越code

See merge request composer/php-wms-client!6
2020-07-23 16:15:28 +08:00
郑翀
d065739775 Merge branch 'feature/new_wms' into 'master'
2b发货使用ptck的orderType

See merge request composer/php-wms-client!5
2020-07-23 10:12:24 +08:00
郑翀
707d4c64e5 Merge branch 'feature/new_wms' into 'master'
打印奇门请求返回数据日志

See merge request composer/php-wms-client!4
2020-07-21 17:08:23 +08:00
郑翀
a8b95bd9e7 Merge branch 'feature/new_wms' into 'master'
日志

See merge request composer/php-wms-client!3
2020-07-21 15:40:10 +08:00
郑翀
714a1aecb9 Merge branch 'feature/new_wms' into 'master'
增加奇门自测验签方法

See merge request composer/php-wms-client!2
2020-07-17 12:01:23 +08:00
郑翀
5dc67b272f Merge branch 'feature/new_wms' into 'master'
签名验证(带多余请求)

See merge request composer/php-wms-client!1
2020-07-17 11:36:26 +08:00
4 changed files with 12 additions and 6 deletions

View File

@ -6,13 +6,15 @@ return [
'other_express_weight' => 45,
'logistics' => [
'toB' => [
[
'code' => 'CN7000001003751',
'name' => '跨越',
],
[
'code' => 'CN7000001000869',
'name' => '安能快运',
'is_default' => false,
],
[
'code' => 'CN7000001003751',
'name' => '跨越',
'is_default' => false,
],
],
@ -20,6 +22,7 @@ return [
[
'code' => 'STO',
'name' => '申通',
'is_default' => false,
],
]
],

View File

@ -7,7 +7,7 @@ class FineexWms extends QimenWms
protected static $default_shop_name = '北京拍店';
protected static $default_seller_nick = '北京拍店';
protected static $default_sender_name = '北京拍店';
protected static $default_sender_mobile = '18867657269';
protected static $default_sender_mobile = '13012816773';
protected static $default_sender_province = '浙江省';
protected static $default_sender_city = '嘉兴市';
protected static $default_sender_area = '秀洲区';

View File

@ -332,6 +332,7 @@ class QimenWms extends BaseWms implements WmsInterface
'area' => $params['address_area'],
'detailAddress' => $params['address_detail'],
],
'remark' => $params['remark'] ?? '',
],
'orderLines' => [],
];

View File

@ -33,6 +33,7 @@ class WmsStrategy
$logistics = $this->chooseLogisticsCompany($params['order_address']['receive_province'], $skuTotalWeight);
$params['order_sender_info']['logistics_code'] = $logistics['code'];
$params['order_sender_info']['logistics_name'] = $logistics['name'];
$orderLogisticsType = $logistics['type'];
} else {
$params['order_sender_info']['logistics_code'] = $params['express_code'];
$params['order_sender_info']['logistics_name'] = self::getExpressNameByExpressCode($params['express_code']);
@ -145,7 +146,8 @@ class WmsStrategy
{
$expressChooseConf = require(dirname(dirname(__FILE__)) . '/config/express_choose.php');
$type = self::getOrderType($province, $weight, $expressChooseConf);
return $expressChooseConf['logistics'][$type];
$expressChooseConf['logistics'][$type][0]['is_default'] = true;
return collect([$expressChooseConf['logistics']['toC'], $expressChooseConf['logistics']['toB']])->collapse()->all();
}
/**