mirror of
https://github.com/kongyuebin1/dongfeng-pay.git
synced 2025-12-15 13:59:57 +08:00
修改网关代码的结构,调整了逻辑,删除了许多无用的代码
This commit is contained in:
@@ -30,3 +30,18 @@ func GetMD5LOWER(s string) string {
|
||||
func GetMD5Upper(s string) string {
|
||||
return strings.ToUpper(GetMD5LOWER(s))
|
||||
}
|
||||
|
||||
/**
|
||||
** 将map数据变成key=value形式的字符串
|
||||
*/
|
||||
func MapToString(m map[string]string) string {
|
||||
|
||||
res := ""
|
||||
for k, v := range m {
|
||||
res = res + k + "=" + v + "&"
|
||||
}
|
||||
|
||||
suffix := strings.TrimSuffix(res, "&")
|
||||
|
||||
return suffix
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user