feat: 消息翻译支持切换语言

This commit is contained in:
kuaifan
2024-10-30 19:54:10 +08:00
parent cce7523f45
commit 621726ab3b
10 changed files with 333 additions and 81 deletions

View File

@@ -97,6 +97,16 @@ class Base
return Base::nullShow(Request::header($key), Request::input($key));
}
/**
* 如果input没有则通过header读取
* @param $key
* @return mixed|string
*/
public static function inputOrHeader($key)
{
return Base::nullShow(Request::input($key), Request::header($key));
}
/**
* 获取版本号
* @return string