mirror of
https://github.com/crmeb/CRMEB.git
synced 2026-11-02 16:00:40 +00:00
【程序目录】运费计算没有运费模版时报错问题修复
This commit is contained in:
parent
cdb4ebdaca
commit
2fa71c507e
@ -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,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user