Browse Source

update

adv_callback
dengbiao 1 month ago
parent
commit
63d8978c4a
2 changed files with 6 additions and 6 deletions
  1. +3
    -3
      app/hdl/hdl_demo.go
  2. +3
    -3
      app/lib/aes/check.go

+ 3
- 3
app/hdl/hdl_demo.go View File

@@ -110,10 +110,10 @@ func CreateSign(c *gin.Context) {
}
for key, value := range bodyParams {
// 使用类型断言判断是否为 string 类型
if _, ok := value.(string); ok {
query[key] = value.(string)
} else {
if _, ok := value.(map[string]interface{}); ok {
query[key] = utils.SerializeStr(value)
} else {
query[key] = utils.AnyToString(value)
}
}
}


+ 3
- 3
app/lib/aes/check.go View File

@@ -49,10 +49,10 @@ func CheckSign(c *gin.Context) error {
}
for key, value := range bodyParams {
// 使用类型断言判断是否为 string 类型
if _, ok := value.(string); ok {
query[key] = value.(string)
} else {
if _, ok := value.(map[string]interface{}); ok {
query[key] = utils.SerializeStr(value)
} else {
query[key] = utils.AnyToString(value)
}
}
}


Loading…
Cancel
Save