| xqd
@@ -218,15 +218,6 @@ class OrderController extends AuthController
|
|
|
|
|
|
$product_type = $req['product_type'];
|
|
|
|
|
|
- if ($req['product_type'] == 4) {
|
|
|
- $vaccine = Vaccine::select(['type'])->where('id', $req['vaccine_id'])->first();
|
|
|
- if ($vaccine['type'] == 2) {
|
|
|
- if (empty($req['total_amount'])) {
|
|
|
- return out(null, 10001, '总价不能为0');
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
$discount_amount = 0;
|
|
|
if (!empty($req['user_coupon_id'])) {
|
|
|
//计算优惠金额
|