diff --git a/app/admin/logic/beforehand_order/BeforehandOrderLogic.php b/app/admin/logic/beforehand_order/BeforehandOrderLogic.php index d9bef6369..e707297b9 100644 --- a/app/admin/logic/beforehand_order/BeforehandOrderLogic.php +++ b/app/admin/logic/beforehand_order/BeforehandOrderLogic.php @@ -411,7 +411,7 @@ class BeforehandOrderLogic extends BaseLogic 'admin_id' => $admin_id, 'total_price' => $arr['total_price'], 'price' => $arr['price'], - 'vip_price' => $price==0?$arr['price']:$price, + 'vip_price' => $price, 'purchase' => $arr['purchase'], 'oid' => $res['id'], 'code' => $res['code'], @@ -870,10 +870,10 @@ class BeforehandOrderLogic extends BaseLogic if($order['uid']>0){ $user_ship = User::where('id', $order['uid'])->value('user_ship'); if($user_ship==0){ - throw new BusinessException('用户id不能为0'); + throw new BusinessException('用户角色id不能为0'); } }else{ - throw new BusinessException('用户id不能为0'); + throw new BusinessException('该订单没选择会员用户'); } $total_price = 0; $pay_price = 0;