123456789101112131415161718192021222324252627 |
- <?php
- namespace app\api\controller;
- use app\common\controller\Api;
- use think\Db;
- /**
- * 最新政策
- */
- class Zhengce extends Api
- {
- protected $noNeedLogin = ['*'];
- protected $noNeedRight = ['*'];
- public function zhengce()
- {
- $zgs_id = 0;
- $list = Db::name('zhengce')
- ->where('company_id','IN',[$this->auth->company_id,$zgs_id])
- ->order('id' , 'desc')
- ->autopage()
- ->select();
- $list = list_domain_image($list, ['image']);
- $this->success(1, $list);
- }
- }
|