|
@@ -12,6 +12,7 @@ use app\common\model\UserArticle;
|
|
|
use app\common\model\UserLearn;
|
|
|
use app\common\model\UserMessage;
|
|
|
use app\common\model\UserSearch;
|
|
|
+use app\common\model\UserTag;
|
|
|
use app\common\model\UserTrack;
|
|
|
use library\tools\Data;
|
|
|
/**
|
|
@@ -929,10 +930,9 @@ class Article extends Base
|
|
|
$title = input('get.title');
|
|
|
if($title) $sel_where[] = ['i.title','like','%'.$title.'%'];
|
|
|
$sel_where[] = ['t.user_id','=',$this->user_id];
|
|
|
- $sel_where[] = ['t.coll_type','=',3];
|
|
|
- $list = UserCollect::where($sel_where)
|
|
|
+ $list = ArticleLike::where($sel_where)
|
|
|
->alias('t')
|
|
|
- ->field('t.id,t.create_at,t.coll_id article_id,t.children_id item_id,i.title,i.cover')
|
|
|
+ ->field('t.id,t.create_at,t.article_id,t.item_id,i.title,i.cover')
|
|
|
->leftJoin('ArticleItem i','t.children_id = i.id')
|
|
|
->order('id desc')
|
|
|
->limit($this->off_set,$this->page_num)
|