Commit 3feb1957 authored by shajiaiming's avatar shajiaiming

Merge branch 'feature/optimize' into 'master'

多语言配置 See merge request !120
parents 9c807aa6 4fa60a5a
......@@ -33,6 +33,9 @@ class BaseController extends Controller
public function fzmCrossHeader()
{
$this->lang = \Yii::$app->request->headers->get('lang') ?? 'zh-CN';
if ('en' == strtolower($this->lang)){
$this->lang = 'en-US';
}
}
public function beforeAction($action)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment