|
|
@@ -632,8 +632,9 @@ class PurchaseController extends BaseController
|
|
|
$post['localOrder'] = 1;
|
|
|
} else {
|
|
|
|
|
|
- // xhShMethod 门店:下单前按配置写入不满最低消费时的附加包装费/运费,关键词sh_method_area
|
|
|
- if (in_array($ghsShopId, [36523])) {
|
|
|
+ // xhShMethod 门店:下单前按配置写入不满最低消费时的附加包装费/运费,关键词 sh_method_area
|
|
|
+ $newShMethod = dict::getDict('newShMethod');
|
|
|
+ if (in_array($ghsShopId, $newShMethod)) {
|
|
|
$shMethodBigNum = 0;
|
|
|
foreach ($productList as $itemData) {
|
|
|
$shMethodBigNum += floatval($itemData['bigNum'] ?? 0);
|
|
|
@@ -728,8 +729,9 @@ class PurchaseController extends BaseController
|
|
|
|
|
|
$respond = PurchaseService::createPurchase($post, $ghsInfo);
|
|
|
|
|
|
- if (in_array($ghsShopId, [36523])) {
|
|
|
- // 使用 xhShMethod 配置校验配送限制,替代旧版门店硬编码规则,关键词sh_method_area
|
|
|
+ $newShMethod = dict::getDict('newShMethod');
|
|
|
+ if (in_array($ghsShopId, $newShMethod)) {
|
|
|
+ // 使用 xhShMethod 配置校验配送限制,替代旧版门店硬编码规则,关键词 sh_method_area
|
|
|
$shMethodError = ShMethodClass::checkLimit(
|
|
|
$ghsShopId,
|
|
|
$ghsMainId,
|