From f7ef46df42a2894f1af607a7039c6a7cecaff902 Mon Sep 17 00:00:00 2001 From: liwei1dao Date: Tue, 20 Dec 2022 16:11:38 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85api=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lego/sys/gin/engine/context.go | 5 +++++ 1 file changed, 5 insertions(+) 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 返回给定键的值,否则抛出异常。 */