根据快递code判断订单bc类型
This commit is contained in:
parent
ee866468de
commit
5ec1668057
|
@ -156,4 +156,23 @@ class WmsStrategy
|
|||
return 'toC';
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 根据物流快递判断订单bc类型
|
||||
* @param $expressCode
|
||||
* @return string
|
||||
*/
|
||||
static public function getOrderTypeByExpressCode($expressCode)
|
||||
{
|
||||
$expressChooseConf = require(dirname(dirname(__FILE__)) . '/config/express_choose.php');
|
||||
$logisticsToC = collect($expressChooseConf['logistics']['toC'])->pluck('code')->toArray();
|
||||
if (in_array($expressCode, $logisticsToC)) {
|
||||
return 'toC';
|
||||
}
|
||||
$logisticsToB = collect($expressChooseConf['logistics']['toB'])->pluck('code')->toArray();
|
||||
if (in_array($expressCode, $logisticsToB)) {
|
||||
return 'toB';
|
||||
}
|
||||
return '';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user