【修改】基础功能验证

This commit is contained in:
niubinghui
2024-09-06 18:57:29 +08:00
parent 425cd807d3
commit 1d9e187624
5 changed files with 43 additions and 51 deletions

View File

@@ -14,7 +14,7 @@ function plugin_load(stellar, plug_env)
print("this example aims to test regist function")
plug_env.data = "my example regist plugin env"
--[[ 由于未订阅消息, 注册函数应该永远不会触发 ]]
plug_env.id = plugin_manage.register(stellar, plugin_ctx_new, plugin_ctx_free, plug_env)
plug_env.id = session_plugin.register(stellar, plugin_ctx_new, plugin_ctx_free, plug_env)
print("plugin env data is", plug_env.data)
print("after regist, plugin id is", plug_env.id)
end