Base.php 702 字节
<?php

namespace app\api\controller\v1;

use app\common\controller\Api;
use think\Request;

header('Content-type:text/html; Charset=utf-8');
date_default_timezone_set('PRC');

class Base extends Api
{
    protected $noNeedLogin = ['*'];//*无需验证登陆
    protected $AppID;
    protected $AppSecret;
    protected $qiniuUrl;

    public function __construct(Request $request = null)
    {
        parent::__construct($request);
        $this->qiniuUrl = 'https://qiniu.ask.xp.yn.cn';
        $this->doman = 'https://wyc.tenyes.cn/';
        $this->AppID = config("site.wxxcx_AppID");//微信小程序AppID
        $this->AppSecret = config("site.wxxcx_AppSecret");//微信小程序密钥
    }

}