zilong 4 năm trước cách đây
mục cha
commit
5ee7fd21fc
1 tập tin đã thay đổi với 0 bổ sung9 xóa
  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'])) {
             //计算优惠金额