This commit is contained in:
cdle
2021-09-30 18:44:15 +08:00
parent 858ed07107
commit e5c1df510f
+2 -2
View File
@@ -146,11 +146,11 @@ func init() {
vm.Set("push", push) vm.Set("push", push)
vm.Set("sendText", func(call otto.Value) interface{} { vm.Set("sendText", func(call otto.Value) interface{} {
s.Reply(call.String()) s.Reply(call.String())
return nil return otto.Value{}
}) })
vm.Set("sendImage", func(call otto.Value) interface{} { vm.Set("sendImage", func(call otto.Value) interface{} {
s.Reply(ImageUrl(call.String())) s.Reply(ImageUrl(call.String()))
return nil return otto.Value{}
}) })
rt, err := vm.Run(template + ` rt, err := vm.Run(template + `
"" ""