diff --git a/app/src/main/assets/print_demo.html b/app/src/main/assets/print_demo.html
index b4b9ce8..21f2a40 100644
--- a/app/src/main/assets/print_demo.html
+++ b/app/src/main/assets/print_demo.html
@@ -238,6 +238,7 @@
+
@@ -1143,6 +1144,24 @@
showPttResult("已发送 AT 指令: " + cmd);
}
}
+
+ // 注册临时群锁定回调
+ window.startPullGroupLock = function(gid) {
+ showPttResult("收到临时群锁定回调 startPullGroupLock, GID: " + gid);
+ };
+
+ window.endPullGroupLock = function() {
+ showPttResult("收到临时群解锁回调 endPullGroupLock");
+ };
+
+ function queryTempGroupId() {
+ if (window.android && window.android.getTempGroupId) {
+ var gid = window.android.getTempGroupId();
+ showPttResult("当前在临时群的 GID: " + (gid || "无"));
+ } else {
+ showPttResult("接口 getTempGroupId 不可用");
+ }
+ }