Files
cunkebao_v3/Server/application/api/controller/BaseController.php

27 lines
506 B
PHP

<?php
namespace app\api\controller;
use think\Controller;
use think\facade\Env;
use app\common\service\AuthService;
class BaseController extends Controller
{
/**
* 令牌
*
* @var string
*/
protected $token = '';
protected $baseUrl;
protected $authorization = '';
public function __construct()
{
parent::__construct();
$this->baseUrl = Env::get('api.wechat_url');
$this->authorization = AuthService::getSystemAuthorization();
}
}