作者 王智

222

@@ -407,13 +407,13 @@ class Api @@ -407,13 +407,13 @@ class Api
407 ->select(); 407 ->select();
408 408
409 $tidu = Db::name('product')->where(['id' => $product_id])->find(); 409 $tidu = Db::name('product')->where(['id' => $product_id])->find();
410 - dump($tidu);  
411 - die;  
412 if ($tidu['tidu1'] != "") { 410 if ($tidu['tidu1'] != "") {
413 if ($buy_num < $tidu['tidu1'] & $buy_num > 0) { 411 if ($buy_num < $tidu['tidu1'] & $buy_num > 0) {
414 $price = $buy_num * $tidu['price']; 412 $price = $buy_num * $tidu['price'];
415 } 413 }
416 } 414 }
  415 + dump($tidu['price']);
  416 + die;
417 if ($tidu['tidu2'] != "") { 417 if ($tidu['tidu2'] != "") {
418 if ($buy_num > $tidu['tidu1'] - 1 & $buy_num < $tidu['tidu2']) { 418 if ($buy_num > $tidu['tidu1'] - 1 & $buy_num < $tidu['tidu2']) {
419 $price = $buy_num * $tidu['price1']; 419 $price = $buy_num * $tidu['price1'];