|
@@ -98,7 +98,7 @@ class Topicdongtai extends Api
|
|
|
if($uid != $this->auth->id){
|
|
|
$where['dt.auditstatus'] = 1; //不是自己的,就只能看审核通过的
|
|
|
}else{
|
|
|
- $wherep['dt.auditstatus'] = ['neq',2];
|
|
|
+ $where['dt.auditstatus'] = ['neq',2];
|
|
|
}
|
|
|
|
|
|
$field = 'dt.*,user.username,user.nickname,user.avatar,user.gender,user.birthday,user.idcard_status,user.real_status';
|
|
@@ -107,7 +107,7 @@ class Topicdongtai extends Api
|
|
|
->join('user','dt.user_id = user.id','LEFT')
|
|
|
->field($field)
|
|
|
->where($where)
|
|
|
- ->order('dt.id desc')->autopage()->select();
|
|
|
+ ->order('dt.id desc')->autopage()->select(false);echo $list;exit;
|
|
|
$list = list_domain_image($list,['images','audio_file','avatar','video_file']);
|
|
|
|
|
|
if(!empty($list)){
|