You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

41 lines
589 B

<?php
// 基础类
class Base
{
// 配置
protected $config;
// 加解密类
public $Crypt;
// 请求类
public $Request;
/**
* 构造函数
*/
public function __construct()
{
// 读取配置
$this->config = require_once('../config/config.php');
// 实例化加解密类
require_once('Crypt.php');
$this->Crypt = new Crypt($this->config);
// 实例化请求类
require_once('Request.php');
$this->Request = new Request($this->config);
}
/**
* 获取配置信息
* @return array
*/
public function getConfig()
{
return $this->config;
}
}
?>