This commit is contained in:
cdle
2021-09-23 19:16:48 +08:00
parent 10ea8f0b3b
commit af79eca235
+1 -1
View File
@@ -143,7 +143,7 @@ func InitReplies() {
if v[1] == "?" { if v[1] == "?" {
g = string(f) g = string(f)
} else { } else {
g, _ = jsonparser.GetString(data, strings.Split(v[1], ".")[1:]...) g, _ = jsonparser.GetString(f, strings.Split(v[1], ".")[1:]...)
} }
fmt.Println(g) fmt.Println(g)
cptn = strings.Replace(cptn, fmt.Sprintf(`"[%s]"`, v[1]), g, -1) cptn = strings.Replace(cptn, fmt.Sprintf(`"[%s]"`, v[1]), g, -1)