Compare commits
18 Commits
ce1efee9b1
...
e40c2ebdde
Author | SHA1 | Date | |
---|---|---|---|
|
e40c2ebdde | ||
|
50cfe5cc1c | ||
|
cd59de5206 | ||
|
0e415b46e8 | ||
|
0d39edd856 | ||
|
f8bd13f8df | ||
|
712c27514c | ||
|
01e03a2fce | ||
|
6d7b4d5fde | ||
|
4503cca8bd | ||
|
06b07b8751 | ||
|
2866335f11 | ||
|
06043d19f9 | ||
|
d065739775 | ||
|
707d4c64e5 | ||
|
a8b95bd9e7 | ||
|
714a1aecb9 | ||
|
5dc67b272f |
|
@ -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,
|
||||
],
|
||||
]
|
||||
],
|
||||
|
|
|
@ -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 = '秀洲区';
|
||||
|
|
|
@ -332,6 +332,7 @@ class QimenWms extends BaseWms implements WmsInterface
|
|||
'area' => $params['address_area'],
|
||||
'detailAddress' => $params['address_detail'],
|
||||
],
|
||||
'remark' => $params['remark'] ?? '',
|
||||
],
|
||||
'orderLines' => [],
|
||||
];
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue
Block a user