Baseconfig.php 606 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. <?php
  2. namespace app\api\controller;
  3. use app\common\controller\Api;
  4. use think\Db;
  5. use Redis;
  6. /**
  7. * 基础配置接口
  8. */
  9. class Baseconfig extends Api
  10. {
  11. protected $noNeedLogin = ['*'];
  12. protected $noNeedRight = ['*'];
  13. public function index(){
  14. //结果
  15. $config = [
  16. 'kefu_phone' => config('site.kefuphoneno'),//客服电话号
  17. ];
  18. $this->success('success',$config);
  19. }
  20. //自提点
  21. public function zitidian(){
  22. $list = Db::name('zitidian')->order('id desc')->select();
  23. $this->success('success',$list);
  24. }
  25. }