This commit is contained in:
cdle
2021-10-06 09:58:00 +08:00
parent 2e5b932be2
commit 1dc8d8edd7
+1 -3
View File
@@ -139,9 +139,7 @@ func init() {
}
var handler = func(s Sender) interface{} {
template := data
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)
param := func(call otto.Value) otto.Value {