This commit is contained in:
sunmoon
2022-03-11 07:54:34 +08:00
parent 5813979479
commit 7767bf4d5d

View File

@ -41,7 +41,7 @@ func (r *Request) GetRequest(key string, def ...interface{}) *gvar.Var {
if value.IsNil() {
value = r.GetRouter(key)
}
if value.IsNil() {
if !value.IsNil() {
return value
}
if len(def) > 0 {