|
@@ -474,7 +474,7 @@ class Topicdongtai extends Api
|
|
|
|
|
|
$collect_id = Db::name('user_collect')->where(['table'=>'topic_dongtai','user_id'=>$this->auth->id])->column('table_id');
|
|
|
|
|
|
- $where = ['dt.id','IN',$collect_id];
|
|
|
+ $where = ['dt.id'=>['IN',$collect_id]];
|
|
|
|
|
|
$list = Db::name('topic_dongtai')->alias('dt')
|
|
|
->join('user','dt.user_id = user.id','LEFT')
|
|
@@ -731,6 +731,7 @@ class Topicdongtai extends Api
|
|
|
|
|
|
if(!empty($list)){
|
|
|
foreach($list as $key => &$val){
|
|
|
+ $val['aite'] = json_decode($val['aite'],true);
|
|
|
|
|
|
//用户年龄
|
|
|
$val['age'] = birthtime_to_age($val['birthday']);
|