...
|
...
|
@@ -424,20 +424,18 @@ class Api |
|
|
}
|
|
|
if ($tidu['tidu4'] != "") {
|
|
|
if ($buy_num > $tidu['tidu3'] - 1 & $buy_num < $tidu['tidu4']) {
|
|
|
echo '1';
|
|
|
$price = $buy_num * $tidu['price3'];
|
|
|
}
|
|
|
}
|
|
|
if ($tidu['tidu5'] != "") {
|
|
|
if ($buy_num > $tidu['tidu4'] - 1 & $buy_num < $tidu['tidu5']) {
|
|
|
echo '1';
|
|
|
$price = $buy_num * $tidu['price4'];
|
|
|
}
|
|
|
if ($buy_num > $tidu['tidu5'] - 1) {
|
|
|
echo '1';
|
|
|
$price = $buy_num * $tidu['price5'];
|
|
|
}
|
|
|
}
|
|
|
dump($price);
|
|
|
die;
|
|
|
$tidu_new = Db::name('product')->where(['id' => $product_id])->select();
|
|
|
foreach ($tidu_new as $k => $v) {
|
...
|
...
|
|