|
@@ -87,7 +87,8 @@ class Controller extends BaseController
|
|
|
|
|
|
|
|
protected function __construct()
|
|
protected function __construct()
|
|
|
{
|
|
{
|
|
|
- App::setLocale(isset($_REQUEST['lang']) && $_REQUEST['lang'] == 'en' ? 'en' : 'zh-CN');
|
|
|
|
|
|
|
+ $lang = isset($_REQUEST['lang'])?$_REQUEST['lang']:'en';
|
|
|
|
|
+ App::setLocale($lang);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
protected function success($data = [], $msg = '')
|
|
protected function success($data = [], $msg = '')
|