| 12345678910111213141516171819202122232425262728293031323334353637 | 
							- <?php
 
- namespace app\api\controller;
 
- use app\common\controller\Api;
 
- use think\Db;
 
- /**
 
-  * 基础配置接口
 
-  */
 
- class Baseconfig extends Api
 
- {
 
-     protected $noNeedLogin = ['*'];
 
-     protected $noNeedRight = ['*'];
 
-    
 
-     public function index(){
 
-         $config = [
 
-             'appversion' => config('site.appversion'),
 
-             'name' => config('site.name'),
 
-         ];
 
-         $config['kefu_mobile'] = config('site.kefu_mobile');
 
-         $config['kefu_time'] = config('site.kefu_time');
 
-         $config['kefu_qq'] = config('site.kefu_qq');
 
-         $config['kefu_weixin'] = localpath_to_netpath(config('site.kefu_weixin'));
 
-         $config['index_dingwei'] = config('site.index_dingwei');
 
-         $config['app_wechatpay'] = config('site.app_wechatpay');
 
-         $config['usercenter_image'] = localpath_to_netpath(config('site.usercenter_image'));
 
-         $this->success('success',$config);
 
-     }
 
- }
 
 
  |