api接口

This commit is contained in:
wanyongkang
2020-10-05 13:43:53 +08:00
parent a331e3f1d5
commit ce067b91dc
9 changed files with 198 additions and 103 deletions

View File

@@ -22,11 +22,14 @@ class Fastphp
//运行程序
public function run(){
global $is_script;
spl_autoload_register(array($this,'loadClass'));
$this->setReporting();
$this->unregisterGlobals();
$this->setDbConfig();
$this->route();
if(!$is_script){
$this->route();
}
}
//路由处理