update
This commit is contained in:
+13
-12
@@ -154,20 +154,21 @@ func init123() {
|
|||||||
v, _ := otto.ToValue(s.Get(int(i - 1)))
|
v, _ := otto.ToValue(s.Get(int(i - 1)))
|
||||||
return v
|
return v
|
||||||
}
|
}
|
||||||
GetUsername := func() otto.Value {
|
vm := otto.New()
|
||||||
|
vm.Set("Delete", func() {
|
||||||
|
s.Delete()
|
||||||
|
})
|
||||||
|
vm.Set("Continue", func() {
|
||||||
|
s.Continue()
|
||||||
|
})
|
||||||
|
vm.Set("GetUsername", func() otto.Value {
|
||||||
v, _ := otto.ToValue(s.GetUsername())
|
v, _ := otto.ToValue(s.GetUsername())
|
||||||
return v
|
return v
|
||||||
}
|
})
|
||||||
Continue := func() {
|
vm.Set("GetUserID", func() otto.Value {
|
||||||
s.Continue()
|
v, _ := otto.ToValue(s.GetUserID())
|
||||||
}
|
return v
|
||||||
Delete := func() {
|
})
|
||||||
s.Delete()
|
|
||||||
}
|
|
||||||
vm := otto.New()
|
|
||||||
vm.Set("Delete", Delete)
|
|
||||||
vm.Set("Continue", Continue)
|
|
||||||
vm.Set("GetUsername", GetUsername)
|
|
||||||
vm.Set("set", set)
|
vm.Set("set", set)
|
||||||
vm.Set("param", param)
|
vm.Set("param", param)
|
||||||
vm.Set("get", get)
|
vm.Set("get", get)
|
||||||
|
|||||||
Reference in New Issue
Block a user