diff --git a/app/api/logic/order/OrderLogic.php b/app/api/logic/order/OrderLogic.php index ac0b3e735..5993d6eb1 100644 --- a/app/api/logic/order/OrderLogic.php +++ b/app/api/logic/order/OrderLogic.php @@ -91,7 +91,7 @@ class OrderLogic extends BaseLogic foreach ($cart_select as $k => $v) { if (isset($params['source']) && $params['source'] == 2) { $field = 'product_id,product_id id,store_name,image,unit,price,vip_price,cost,purchase,cate_id,store_info,rose'; - $find = StoreProduct::where(['product_id' => $v['product_id'],'store_id'=>$params['store_id']])->field($field)->find(); + $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(); }