refactor: 修改Common.php

This commit is contained in:
2025-04-28 10:35:41 +08:00
parent 0eb715f074
commit d34a250ac6

View File

@@ -24,7 +24,7 @@ abstract class Common extends BaseController
* 控制器初始化
* @access public
*/
public function initialize()
protected function initialize()
{
// 获取国家/语言列表
$languages = $this->getLanguages();
@@ -65,7 +65,7 @@ abstract class Common extends BaseController
}
// 获取当前语言
private function getCurrentLanguage($languages)
protected function getCurrentLanguage($languages)
{
$current_code = Lang::getLangSet();
foreach ($languages as $item) {