diff --git a/lego/sys/gin/engine/context.go b/lego/sys/gin/engine/context.go index 20c94ea03..bfc21f4be 100644 --- a/lego/sys/gin/engine/context.go +++ b/lego/sys/gin/engine/context.go @@ -168,6 +168,11 @@ func (this *Context) Get(key string) (value interface{}, exists bool) { return } +func (this *Context) QueryArray(key string) (values []string) { + values, _ = this.GetQueryArray(key) + return +} + /* 如果存在,MustGet 返回给定键的值,否则抛出异常。 */