作者 wangzhi

222

... ... @@ -517,8 +517,11 @@ class Index extends Api
$list[$k1]['avatar'] = cdnurl($v1['avatar'], true);
$list[$k1]['book_con'] = cdnurl($v1['book_avatar'], true);
}
$i = 0;
foreach ($list as $k => $v) {
$list[$k]['number'] = 100;
$list[$k]['id'] = $i;
$i++;
}
$return['count'] = count($count);
$return['num_count'] = ceil($return['count'] / $param['rows']);
... ...
... ... @@ -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.id,p.avatar,p.name,c.class_con,l.logo')
->field('p.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) {
... ...