diff --git a/application/api/controller/Index.php b/application/api/controller/Index.php index 19ba91e..d51eaef 100644 --- a/application/api/controller/Index.php +++ b/application/api/controller/Index.php @@ -18,10 +18,10 @@ class Index extends Api */ public function index() { - $this->success('请求成功'); + $this->success('请求成功1'); } - function GetRandStr($length){ + public function GetRandStr($length){ //字符组合 $str = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789'; $len = strlen($str)-1; diff --git a/application/config.php b/application/config.php index 156c0a2..d6dd972 100644 --- a/application/config.php +++ b/application/config.php @@ -15,7 +15,7 @@ return [ // +---------------------------------------------------------------------- // | 应用设置 // +---------------------------------------------------------------------- - // 应用命名空间 + // 应用命名空间1 'app_namespace' => 'app', // 应用调试模式 'app_debug' => Env::get('app.debug', true),