作者 anyv
1 个管道 的构建 通过 耗费 0 秒

54

... ... @@ -84,7 +84,7 @@ class GoodsdetailsController extends WeChatBaseController{
Db::name('browsing_history') -> insert($browsing_history);
}
//判断订单收藏
$collect = Db::name('collect') -> where('goods_id',$goods_id['goods_id']) -> find();
$collect = Db::name('collect') -> where('goods_id',$goods_id['goods_id']) -> where('uid',$uid) -> find();
if($collect){
//存在显示2
$this -> assign('is_collect',2);
... ...