...
|
...
|
@@ -405,6 +405,7 @@ class Api |
|
|
->join('logo l', 'l.id=p.logo_id')
|
|
|
->field('p.stock,s.product_id,s.id,p.avatar,p.name,c.class_con,l.logo,s.buy_num')
|
|
|
->select();
|
|
|
|
|
|
$tidu = Db::name('product')->where(['id' => $product_id])->find();
|
|
|
if ($buy_num < $tidu['tidu1'] & $buy_num > 0) {
|
|
|
$price = $buy_num * $tidu['price'];
|
...
|
...
|
|