This commit is contained in:
ZweiCD 2020-08-27 14:48:15 +08:00
parent 471edb975d
commit 4664429761

View File

@ -106,6 +106,19 @@ class WmsStrategy
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