123456789101112131415161718192021222324252627282930313233343536 |
- <?php
- namespace app\api\controller;
- use app\common\controller\Api;
- use think\Db;
- /**
- * 话题中心
- */
- class Topichub extends Api
- {
- protected $noNeedLogin = [];
- protected $noNeedRight = ['*'];
- //圈子广场,全部圈子
- public function lists(){
- $list = Db::name('topic_hub')->where('status',1)->order('weight desc,id desc')->autopage()->select();
- $list = list_domain_image($list,['image']);
- $this->success('success',$list);
- }
- //某个圈子详情
- public function info(){
- $id = input('id',0);
- $info = Db::name('topic_hub')->where(['status'=>1,'id'=>$id])->find();
- $info = info_domain_image($info,['image']);
- $this->success('success',$info);
- }
- //某个圈子里的动态列表,全部,最新,最热
- //放到 topicdongtai.php里了
- }
|