feat/task1-c-wallet
devil_gong 2018-09-10 13:42:09 +08:00
parent 46d06a4a93
commit 595c7420b8
1 changed files with 3 additions and 0 deletions

View File

@ -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' => [