This commit is contained in:
hoteas 2017-12-03 18:58:10 +00:00
parent 4b37804b01
commit 3b664ac178

View File

@ -275,7 +275,7 @@ func StrArrayToJsonStr(a string) string {
a = Substr(a, 1, len(a)-1) a = Substr(a, 1, len(a)-1)
} }
if a[len(a)-1] == ',' { if a[len(a)-1] == ',' {
a = Substr(a, 1, len(a)-2) a = Substr(a, 0, len(a)-1)
} }
//a = strings.Replace(a, ",", `,`, -1) //a = strings.Replace(a, ",", `,`, -1)
a = `[` + a + `]` a = `[` + a + `]`