From 595c7420b84f752b2da05c167213edbc1e42099d Mon Sep 17 00:00:00 2001 From: devil_gong Date: Mon, 10 Sep 2018 13:42:09 +0800 Subject: [PATCH] search --- service/Application/Home/Controller/GoodsController.class.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/service/Application/Home/Controller/GoodsController.class.php b/service/Application/Home/Controller/GoodsController.class.php index a9a514d14..e52995f5e 100755 --- a/service/Application/Home/Controller/GoodsController.class.php +++ b/service/Application/Home/Controller/GoodsController.class.php @@ -48,6 +48,9 @@ class GoodsController extends CommonController $this->assign('goods', $goods[0]); $this->assign('home_seo_site_title', $goods[0]['title']); + // 商品访问统计 + M('Goods')->where(array('id'=>$id))->setInc('access_count'); + // 左侧商品 看了又看 $params = [ 'where' => [