|
@@ -16,7 +16,7 @@ class Topichub extends Api
|
|
|
//圈子广场,全部圈子
|
|
|
public function lists(){
|
|
|
$list = Db::name('topic_hub')->where('status',1)->order('weight desc,id desc')->autopage()->select();
|
|
|
- $list = list_domain_image($list,['images']);
|
|
|
+ $list = list_domain_image($list,['image']);
|
|
|
$this->success('success',$list);
|
|
|
}
|
|
|
|
|
@@ -24,7 +24,7 @@ class Topichub extends Api
|
|
|
public function info(){
|
|
|
$id = input('id',0);
|
|
|
$info = Db::name('topic_hub')->where(['status'=>1,'id'=>$id])->find();
|
|
|
- $info = info_domain_image($info,['images']);
|
|
|
+ $info = info_domain_image($info,['image']);
|
|
|
|
|
|
//圈子成员
|
|
|
$user_list = Db::name('topic_user')->alias('tp')
|
|
@@ -102,7 +102,7 @@ class Topichub extends Api
|
|
|
->field('th.*')
|
|
|
->join('topic_hub th','tu.topic_id = th.id','LEFT')
|
|
|
->where(['tu.user_id' => $this->auth->id,'th.status'=>1])->order('tu.id desc,th.weight desc,th.id desc')->autopage()->select();
|
|
|
- $list = list_domain_image($list,['images']);
|
|
|
+ $list = list_domain_image($list,['image']);
|
|
|
$this->success('success',$list);
|
|
|
}
|
|
|
|