From 1cb19cfd9cc332119f612145b189b99b7d43bbcb Mon Sep 17 00:00:00 2001
From: 王智 <wz@bronet.cn>
Date: Tue, 1 Sep 2020 14:30:19 +0800
Subject: [PATCH] 222

---
 application/common/controller/Api.php | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/application/common/controller/Api.php b/application/common/controller/Api.php
index c9d3c70..16dfb1d 100644
--- a/application/common/controller/Api.php
+++ b/application/common/controller/Api.php
@@ -409,31 +409,28 @@ class Api
         $tidu = Db::name('product')->where(['id' => $product_id])->find();
         if ($tidu['tidu1'] != "") {
             if ($buy_num < $tidu['tidu1'] & $buy_num > 0) {
+                echo '1';
                 $price = $buy_num * $tidu['price'];
             }
         }
-        dump($price);
         if ($tidu['tidu2'] != "") {
             if ($buy_num > $tidu['tidu1'] - 1 & $buy_num < $tidu['tidu2']) {
+                echo '2';
                 $price = $buy_num * $tidu['price1'];
             }
         }
-        dump($price);
-
         if ($tidu['tidu3'] != "") {
             if ($buy_num > $tidu['tidu2'] - 1 & $buy_num < $tidu['tidu3']) {
+                echo '3';
                 $price = $buy_num * $tidu['price2'];
             }
         }
-        dump($price);
-
         if ($tidu['tidu4'] != "") {
             if ($buy_num > $tidu['tidu3'] - 1 & $buy_num < $tidu['tidu4']) {
+                echo '4';
                 $price = $buy_num * $tidu['price3'];
             }
         }
-        dump($price);
-
         if ($tidu['tidu5'] != "") {
             if ($buy_num > $tidu['tidu4'] - 1 & $buy_num < $tidu['tidu5']) {
                 $price = $buy_num * $tidu['price4'];
--
libgit2 0.24.0