feat: mobile 联系我们留言页
This commit is contained in:
@@ -133,10 +133,10 @@ if (!function_exists('lang_i18n')) {
|
|||||||
return '';
|
return '';
|
||||||
}
|
}
|
||||||
$path = strtolower(request()->controller() . '/' . request()->action());
|
$path = strtolower(request()->controller() . '/' . request()->action());
|
||||||
$full_name = $path . '.' . $name;
|
$lang_key = "{$path}.{$name}";
|
||||||
if (!Lang::has($full_name, $lang)) {
|
if (!Lang::has($lang_key, $lang)) {
|
||||||
return $name;
|
return $name;
|
||||||
}
|
}
|
||||||
return Lang::get($full_name, $vars, $lang);
|
return Lang::get($lang_key, $vars, $lang);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user