From e5c1df510f76b79b4420f08cdef537af41647b5b Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Thu, 30 Sep 2021 18:44:15 +0800 Subject: [PATCH] update --- core/otto.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/otto.go b/core/otto.go index c4921f5..11cc5ea 100644 --- a/core/otto.go +++ b/core/otto.go @@ -146,11 +146,11 @@ func init() { vm.Set("push", push) vm.Set("sendText", func(call otto.Value) interface{} { s.Reply(call.String()) - return nil + return otto.Value{} }) vm.Set("sendImage", func(call otto.Value) interface{} { s.Reply(ImageUrl(call.String())) - return nil + return otto.Value{} }) rt, err := vm.Run(template + ` ""