feat: 消息翻译支持切换语言
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user