This commit is contained in:
sunmoon
2022-03-10 09:52:45 +08:00
parent 12eb3ac63e
commit 2471130f59

View File

@ -22,6 +22,7 @@ import (
//
// Note that if there are multiple parameters with the same name, the parameters are
// retrieved and overwrote in order of priority: router < query < body < form < custom.
func (r *Request) GetRequest(key string, def ...interface{}) *gvar.Var {
value := r.GetParam(key)
if value.IsNil() {