This commit is contained in:
1-6
2023-07-11 23:19:43 +08:00
parent 72fe831c8d
commit 396231f528
25 changed files with 38 additions and 32 deletions
+1 -1
View File
@@ -228,7 +228,7 @@ func SetPluginMethod(vm *goja.Runtime, uuid string, on_start bool, running func(
})
registry.Enable(vm)
vm.SetFieldNameMapper(myFieldNameMapper{})
// vm.Set("sleep", sleep)
vm.Set("sleep", sleep)
vm.Set("md5", utils.Md5)
vm.Set("image", utils.ToImageQrcode)
vm.Set("video", utils.ToVideoQrcode)