作者 wangzhi

222

... ... @@ -460,7 +460,7 @@ class Api
->where(['p.id' => $product_id])
->join('class_con c', 'c.id=p.class_con_id')
->join('logo l', 'l.id=p.logo_id')
->field('p.avatar,p.name,c.class_con,l.logo')
->field('p.idp.avatar,p.name,c.class_con,l.logo')
->select();
$tidu = Db::name('product')->where(['id' => $product_id])->find();
if ($buy_num < $tidu['tidu1'] + 1 & $buy_num > 0) {
... ...