Zhengce.php 554 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace app\api\controller;
  3. use app\common\controller\Api;
  4. use think\Db;
  5. /**
  6. * 最新政策
  7. */
  8. class Zhengce extends Api
  9. {
  10. protected $noNeedLogin = ['*'];
  11. protected $noNeedRight = ['*'];
  12. public function zhengce()
  13. {
  14. $zgs_id = 0;
  15. $list = Db::name('zhengce')
  16. ->where('company_id','IN',[$this->auth->company_id,$zgs_id])
  17. ->order('id' , 'desc')
  18. ->autopage()
  19. ->select();
  20. $list = list_domain_image($list, ['image']);
  21. $this->success(1, $list);
  22. }
  23. }