修改网关代码的结构,调整了逻辑,删除了许多无用的代码

This commit is contained in:
kongyuebin
2021-09-16 14:57:23 +08:00
parent 706a95317d
commit 2a98cbd9ac
58 changed files with 6137 additions and 744 deletions

View File

@@ -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
}