浏览代码

修复Api模块语言包加载不到文件名以_分割的文件

Twhmr 5 年之前
父节点
当前提交
d0e42a27b7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      application/common/controller/Api.php

+ 1 - 1
application/common/controller/Api.php

@@ -116,7 +116,7 @@ class Api
         $this->auth = Auth::instance();
 
         $modulename = $this->request->module();
-        $controllername = strtolower($this->request->controller());
+        $controllername = Loader::parseName($this->request->controller());
         $actionname = strtolower($this->request->action());
 
         // token