From e9147b1527382d73af7e15eb1308f7faf64bc850 Mon Sep 17 00:00:00 2001 From: fengge <844143714@qq.com> Date: Mon, 6 Jul 2026 12:45:28 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=B4=E6=97=B6=E7=BE=A4=EF=BC=8C=E5=A3=B0?= =?UTF-8?q?=E9=9F=B3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/assets/print_demo.html | 19 ++++++++ .../main/res/layout/activity_temp_call.xml | 44 +++++++++++++++++++ 2 files changed, 63 insertions(+) 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 不可用"); + } + } diff --git a/app/src/main/res/layout/activity_temp_call.xml b/app/src/main/res/layout/activity_temp_call.xml index 57e2900..2d17d82 100644 --- a/app/src/main/res/layout/activity_temp_call.xml +++ b/app/src/main/res/layout/activity_temp_call.xml @@ -106,6 +106,50 @@ android:textSize="22sp" android:textStyle="bold" /> + + + + + + + + + + + +