| 12345678910111213141516171819202122232425262728293031 | 
							- <?php
 
- namespace app\api\controller;
 
- use app\common\controller\Api;
 
- use think\Db;
 
- /**
 
-  * 就业咨询
 
-  */
 
- class Jiuyezixun extends Api
 
- {
 
-     protected $noNeedLogin = ['*'];
 
-     protected $noNeedRight = ['*'];
 
-     public function lists(){
 
-         $type = input('type',0,'intval');
 
-         $list = Db::name('jiuyezixun')->field('id,title,image,updatetime')
 
-             ->where('type',$type)->where('status',1)
 
-             ->order('weigh','desc')->autopage()->select();
 
-         $list = list_domain_image($list,['image']);
 
-         $this->success(1,$list);
 
-     }
 
-     public function detail(){
 
-         $id = input('id');
 
-         $info = Db::name('jiuyezixun')->where('id',$id)->find();
 
-         $info = info_domain_image($info,['image']);
 
-         $this->success(1,$info);
 
-     }
 
- }
 
 
  |