ソースを参照

修复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