forked from golang/hotime
This commit is contained in:
parent
4b37804b01
commit
3b664ac178
@ -275,7 +275,7 @@ func StrArrayToJsonStr(a string) string {
|
||||
a = Substr(a, 1, 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 = `[` + a + `]`
|
||||
|
Loading…
Reference in New Issue
Block a user