作者 王智

222

@@ -407,6 +407,8 @@ class Api @@ -407,6 +407,8 @@ 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;
410 if ($tidu['tidu1'] != "") { 412 if ($tidu['tidu1'] != "") {
411 if ($buy_num < $tidu['tidu1'] & $buy_num > 0) { 413 if ($buy_num < $tidu['tidu1'] & $buy_num > 0) {
412 $price = $buy_num * $tidu['price']; 414 $price = $buy_num * $tidu['price'];