This commit is contained in:
cdle
2021-10-05 21:40:49 +08:00
parent 1809fc5a1a
commit 9887cf79ba
3 changed files with 3 additions and 8 deletions
+2
View File
@@ -142,6 +142,8 @@ func init() {
for k, v := range s.GetMatch() {
template = strings.Replace(template, fmt.Sprintf(`param(%d)`, k+1), fmt.Sprintf(`"%s"`, v), -1)
}
template = strings.Replace(template, "ImType()", fmt.Sprintf(`"%s"`, s.GetImType()), -1)
template = strings.Replace(template, "GetChatID()", fmt.Sprint(s.GetChatID()), -1)
vm := otto.New()
vm.Set("set", set)
vm.Set("get", get)