Base.php
665 字节
<?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://coupon.xp.yn.cn';
$this->AppID = config("site.appid");//微信小程序AppID
$this->AppSecret = config("site.appsecret");//微信小程序密钥
}
}