2
This commit is contained in:
parent
c650a11cde
commit
5c76941abf
@ -76,8 +76,6 @@ func RequestParamsMiddleware() gin.HandlerFunc {
|
||||
// 解析 URL 参数
|
||||
queryParams := c.Request.URL.Query()
|
||||
|
||||
// 将参数转换为 map[string]interface{}
|
||||
params := make(map[string]interface{})
|
||||
for key, values := range queryParams {
|
||||
if len(values) > 0 {
|
||||
params[key] = fmt.Sprintf("%v", values[0])
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user