fix: 修复多语言获取
This commit is contained in:
@@ -558,8 +558,8 @@ if (!function_exists('__')) {
|
||||
*/
|
||||
function __($str, $parameters = [], $domain = null, $locale = null)
|
||||
{
|
||||
if (is_numeric($str)
|
||||
|| getenv('LANG_DEFAULT_LANG') === 'zh-CN') {
|
||||
$lang = session('lang', 'zh-CN');
|
||||
if (is_numeric($str) || strstr($lang, 'zh-CN')) {
|
||||
return $str;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user