zilong %!s(int64=4) %!d(string=hai) anos
pai
achega
5ee7fd21fc
Modificáronse 1 ficheiros con 0 adicións e 9 borrados
  1. 0 9
      app/Http/Controllers/Api/V1/OrderController.php

+ 0 - 9
app/Http/Controllers/Api/V1/OrderController.php

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'])) {
             //计算优惠金额