}
return $this->fetch('m/productList', [
'groupProduct' => $groupProduct,
'banner' => $banner,
'typeId' => $typeId
]);
}
$product = Db::name('interior_paint')->where('id', $id)->where('status', 1)->find();
if(empty($product)) {
throw new \think\exception\HttpException(404, '产品不存在');
}
$product['img'] = json_decode($product['img'], true);
$product['effect'] = json_decode($product['effect'], true);
$authIds = explode(',', $product['authentication']);
if(!empty($authIds)) {
$auth = Db::name('interior_paint_auth')->where('id', 'in', $authIds)->select();
}
$tpl = 'm/productDetail';
if(in_array($id, [21, 22, 23, 25])) {