|
@@ -6,6 +6,7 @@ use app\common\model\NewsCate;
|
|
|
use app\common\model\NutritionCase;
|
|
|
use app\common\model\StoreBanner;
|
|
|
use app\common\model\UserCollect;
|
|
|
+use app\common\model\UserTrack;
|
|
|
|
|
|
/**
|
|
|
* @title 资讯(营养百科)
|
|
@@ -228,6 +229,7 @@ class Information extends Base
|
|
|
$sel_where[] = ['is_deleted','=',0];
|
|
|
$sel_where[] = ['status','=',1];
|
|
|
$sel_where[] = ['id','=',input('get.id')];
|
|
|
+ if($this->user_id)UserTrack::createTrack($this->user_id,2,input('get.id'));
|
|
|
$detail = InformationArticle::where($sel_where)
|
|
|
->order('is_top desc,sort desc ,id desc')->find();
|
|
|
if(!$detail)$this->error('该资讯已下线');
|