Base.php
863 字节
<?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;
protected $imgUrl;
public $url_h5;//前端h5的首页地址 分销需要加参数
public function __construct(Request $request = null)
{
parent::__construct($request);
$this->imgUrl = 'https://coupon.xp.yn.cn';
$this->qiniuUrl = 'https://coupon.xp.yn.cn';
$this->url_h5 = 'https://coupon.xp.yn.cn/h5/';
$this->AppID = config("site.appid");//微信小程序AppID
$this->AppSecret = config("site.appsecret");//微信小程序密钥
}
}