This commit is contained in:
cdle
2021-10-30 19:18:49 +08:00
parent 77380471e4
commit 3429eba46a
+4
View File
@@ -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