fix: UDM签约查看信息字符分割截断
This commit is contained in:
1 parent
c41ee26a2f
commit
5869056b0d
3 files changed
+9
-4
No files matched your search
@@ -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 {
|
||||
|
||||
Reference in new issue
Block a user