update
This commit is contained in:
parent
4664429761
commit
ee866468de
|
@ -106,19 +106,6 @@ class WmsStrategy
|
||||||
return $skuTotalWeight;
|
return $skuTotalWeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* 根据商品重量区分bc单,返回可选择的物流快递
|
|
||||||
* @param string $province
|
|
||||||
* @param string $weight
|
|
||||||
* @return array
|
|
||||||
*/
|
|
||||||
public function getLogistics($province, $weight)
|
|
||||||
{
|
|
||||||
$expressChooseConf = require(dirname(dirname(__FILE__)) . '/config/express_choose.php');
|
|
||||||
$type = self::getOrderType($province, $weight, $expressChooseConf);
|
|
||||||
return $expressChooseConf['logistics'][$type];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 选择物流公司
|
* 选择物流公司
|
||||||
* @param string $province
|
* @param string $province
|
||||||
|
@ -136,6 +123,19 @@ class WmsStrategy
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* 根据商品重量区分bc单,返回可选择的物流快递
|
||||||
|
* @param string $province
|
||||||
|
* @param string $weight
|
||||||
|
* @return array
|
||||||
|
*/
|
||||||
|
static public function getLogistics($province, $weight)
|
||||||
|
{
|
||||||
|
$expressChooseConf = require(dirname(dirname(__FILE__)) . '/config/express_choose.php');
|
||||||
|
$type = self::getOrderType($province, $weight, $expressChooseConf);
|
||||||
|
return $expressChooseConf['logistics'][$type];
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 判断订单BC类型
|
* 判断订单BC类型
|
||||||
* @param $province
|
* @param $province
|
||||||
|
|
Loading…
Reference in New Issue
Block a user