From 67eead570d15378b8b5ae937f2265c6d4f3cbe6d Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 12 Feb 2026 11:31:26 +0800
Subject: [PATCH] feat: app语音

---
 uniapps/work-app/src/uni_modules/keep-app/utssdk/app-android/index.uts |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/uniapps/work-app/src/uni_modules/keep-app/utssdk/app-android/index.uts b/uniapps/work-app/src/uni_modules/keep-app/utssdk/app-android/index.uts
index 2ce95f2..1f308f5 100644
--- a/uniapps/work-app/src/uni_modules/keep-app/utssdk/app-android/index.uts
+++ b/uniapps/work-app/src/uni_modules/keep-app/utssdk/app-android/index.uts
@@ -118,6 +118,8 @@
     const packageName = context.getPackageName()
 
     if (!powerManager.isIgnoringBatteryOptimizations(packageName)) {
+      // 给个提示
+      uni.showToast({  title: '请将应用添加到电池优化白名单'})
       try {
         const intent = new Intent()
         intent.setAction('android.settings.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS')

--
Gitblit v1.9.3