From 5b345817e6214ce89f01d68053151ea964359f5a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E5=BC=A0=E7=A3=8A?= <1633537611@qq.com>
Date: Wed, 24 Jan 2024 18:19:36 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=9D=83=E9=99=90=E7=94=B3?=
=?UTF-8?q?=E8=AF=B7=E9=A1=B5=E9=9D=A2=EF=BC=8C=E6=94=B9=E4=B8=BA=E7=94=B3?=
=?UTF-8?q?=E8=AF=B7=E6=97=A5=E5=8E=86=E6=9D=83=E9=99=90?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../create-request-permission-listener.uvue | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/pages/API/create-request-permission-listener/create-request-permission-listener.uvue b/pages/API/create-request-permission-listener/create-request-permission-listener.uvue
index 052cbfbd..c2cb3a12 100644
--- a/pages/API/create-request-permission-listener/create-request-permission-listener.uvue
+++ b/pages/API/create-request-permission-listener/create-request-permission-listener.uvue
@@ -4,10 +4,10 @@
- 手机状态权限申请说明:
- uni-app x正在申请手机状态权限,允许或拒绝均不会获取任何隐私信息。
+ 日历权限申请说明:
+ uni-app x正在申请日历权限,允许或拒绝均不会获取任何隐私信息。
-
+
@@ -48,14 +48,14 @@
},
requestPermission() {
// #ifdef APP-ANDROID
- if (UTSAndroid.checkSystemPermissionGranted(UTSAndroid.getUniActivity()!, ["android.permission.READ_PHONE_STATE"])) {
+ if (UTSAndroid.checkSystemPermissionGranted(UTSAndroid.getUniActivity()!, ["android.permission.READ_CALENDAR"])) {
uni.showToast({
title: "权限已经同意了,不需要再申请",
position: "bottom"
})
return
}
- UTSAndroid.requestSystemPermission(UTSAndroid.getUniActivity()!, ["android.permission.READ_PHONE_STATE"], (_ : boolean, p : string[]) => {
+ UTSAndroid.requestSystemPermission(UTSAndroid.getUniActivity()!, ["android.permission.READ_CALENDAR"], (_ : boolean, p : string[]) => {
console.log(p)
}, (_ : boolean, p : string[]) => {
uni.showToast({
--
GitLab