fix: UDM签约查看信息字符分割截断

This commit is contained in:
TsMask
2023-11-09 18:28:17 +08:00
parent c41ee26a2f
commit 5869056b0d
3 changed files with 9 additions and 4 deletions

View File

@@ -90,10 +90,10 @@ func MMLSendMsgToMap(ip, msg string) (map[string]string, error) {
if strings.Contains(item, "=") {
// 按照分隔符"="进行拆分键值对
pair = strings.Split(item, "=")
pair = strings.SplitN(item, "=", 2)
} else if strings.Contains(item, ":") {
// 按照分隔符":"进行拆分键值对
pair = strings.Split(item, ":")
pair = strings.SplitN(item, ":", 2)
}
if len(pair) == 2 {