正在显示
1 个修改的文件
包含
1 行增加
和
3 行删除
@@ -424,20 +424,18 @@ class Api | @@ -424,20 +424,18 @@ class Api | ||
424 | } | 424 | } |
425 | if ($tidu['tidu4'] != "") { | 425 | if ($tidu['tidu4'] != "") { |
426 | if ($buy_num > $tidu['tidu3'] - 1 & $buy_num < $tidu['tidu4']) { | 426 | if ($buy_num > $tidu['tidu3'] - 1 & $buy_num < $tidu['tidu4']) { |
427 | - echo '1'; | ||
428 | $price = $buy_num * $tidu['price3']; | 427 | $price = $buy_num * $tidu['price3']; |
429 | } | 428 | } |
430 | } | 429 | } |
431 | if ($tidu['tidu5'] != "") { | 430 | if ($tidu['tidu5'] != "") { |
432 | if ($buy_num > $tidu['tidu4'] - 1 & $buy_num < $tidu['tidu5']) { | 431 | if ($buy_num > $tidu['tidu4'] - 1 & $buy_num < $tidu['tidu5']) { |
433 | - echo '1'; | ||
434 | $price = $buy_num * $tidu['price4']; | 432 | $price = $buy_num * $tidu['price4']; |
435 | } | 433 | } |
436 | if ($buy_num > $tidu['tidu5'] - 1) { | 434 | if ($buy_num > $tidu['tidu5'] - 1) { |
437 | - echo '1'; | ||
438 | $price = $buy_num * $tidu['price5']; | 435 | $price = $buy_num * $tidu['price5']; |
439 | } | 436 | } |
440 | } | 437 | } |
438 | + dump($price); | ||
441 | die; | 439 | die; |
442 | $tidu_new = Db::name('product')->where(['id' => $product_id])->select(); | 440 | $tidu_new = Db::name('product')->where(['id' => $product_id])->select(); |
443 | foreach ($tidu_new as $k => $v) { | 441 | foreach ($tidu_new as $k => $v) { |
-
请 注册 或 登录 后发表评论