This commit is contained in:
cdle
2021-09-23 19:18:47 +08:00
parent af79eca235
commit d9b1608d32
+2 -1
View File
@@ -145,7 +145,8 @@ func InitReplies() {
} else {
g, _ = jsonparser.GetString(f, strings.Split(v[1], ".")[1:]...)
}
fmt.Println(g)
fmt.Println(cptn, fmt.Sprintf(`"[%s]"`, v[1]), g)
cptn = strings.Replace(cptn, fmt.Sprintf(`"[%s]"`, v[1]), g, -1)
}
ptns = append(ptns, cptn)