From 3429eba46a723cba61edc4859413d5e56b7ec4ed Mon Sep 17 00:00:00 2001 From: cdle <798731886@qq.com> Date: Sat, 30 Oct 2021 19:18:49 +0800 Subject: [PATCH] update --- core/otto.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/otto.go b/core/otto.go index b6a3914..f102c71 100644 --- a/core/otto.go +++ b/core/otto.go @@ -238,6 +238,10 @@ func init123() { v, _ := otto.ToValue(s.GetUsername()) return v }) + vm.Set("Debug", func(str otto.Value) otto.Value { + logs.Debug(str) + return otto.Value{} + }) vm.Set("GetUserID", func() otto.Value { v, _ := otto.ToValue(s.GetUserID()) return v