update
This commit is contained in:
+5
-5
@@ -119,7 +119,7 @@ func InitReplies() {
|
|||||||
ptn = ps[1]
|
ptn = ps[1]
|
||||||
con = ps[2]
|
con = ps[2]
|
||||||
}
|
}
|
||||||
fmt.Println(get, ptn, con, "++++")
|
|
||||||
i := 0
|
i := 0
|
||||||
ptns := []string{}
|
ptns := []string{}
|
||||||
for {
|
for {
|
||||||
@@ -130,11 +130,11 @@ func InitReplies() {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
fmt.Println(cptn)
|
|
||||||
cptn = strings.Replace(cptn, "[i]", fmt.Sprintf(`[%d]`, i), -1)
|
cptn = strings.Replace(cptn, "[i]", fmt.Sprintf(`%d`, i), -1)
|
||||||
fmt.Println(cptn)
|
|
||||||
cptn = strings.Replace(cptn, "[?]", f, -1)
|
cptn = strings.Replace(cptn, "[?]", f, -1)
|
||||||
fmt.Println(cptn)
|
|
||||||
ptns = append(ptns, cptn)
|
ptns = append(ptns, cptn)
|
||||||
}
|
}
|
||||||
content = strings.Replace(content, v, strings.Join(ptns, con), -1)
|
content = strings.Replace(content, v, strings.Join(ptns, con), -1)
|
||||||
|
|||||||
Reference in New Issue
Block a user