【程序目录】运费计算没有运费模版时报错问题修复

This commit is contained in:
evoxwht 2022-06-15 10:00:30 +08:00
parent cdb4ebdaca
commit 2fa71c507e

View File

@ -367,7 +367,8 @@ class StoreOrderComputedServices extends BaseServices
} else {
$num = $cart['cart_num'] * $cart['productInfo']['attrInfo']['volume'];
}
$region = $regions[$tempId] ?? $regions[1];
$region = $regions[$tempId] ?? ($regions[1] ?? []);
if (!$region) continue;
if (!isset($temp_num[$tempId])) {
$temp_num[$tempId] = [
'number' => $num,