diff --git a/app/api/logic/order/OrderLogic.php b/app/api/logic/order/OrderLogic.php index ed32dbd2..8d294ac1 100644 --- a/app/api/logic/order/OrderLogic.php +++ b/app/api/logic/order/OrderLogic.php @@ -102,7 +102,9 @@ class OrderLogic extends BaseLogic $find = StoreBranchProduct::where(['product_id' => $v['product_id'], 'store_id' => $params['store_id']])->field($field)->find(); } else { $find = StoreProduct::where(['id' => $v['product_id']])->field($field)->find(); - $find = StoreProductGroupPrice::resetProductPrice($find, $user['user_ship']); + if (!empty($user['user_ship'])) { + $find = StoreProductGroupPrice::resetProductPrice($find, $user['user_ship']); + } } if (!$find) { throw new BusinessException('商品不存在');