From f3477d3876754e28ad9cfcbba020c9ecc677735c Mon Sep 17 00:00:00 2001 From: duqingquan Date: Fri, 28 Jul 2023 11:18:41 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=82=E9=85=8Dnumber=20=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-wifi/utssdk/app-android/index.uts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/uni_modules/uni-wifi/utssdk/app-android/index.uts b/uni_modules/uni-wifi/utssdk/app-android/index.uts index 4396536..5669130 100644 --- a/uni_modules/uni-wifi/utssdk/app-android/index.uts +++ b/uni_modules/uni-wifi/utssdk/app-android/index.uts @@ -378,7 +378,7 @@ export function startWifi(option : WifiOption) { // 检查权限 if (ActivityCompat.checkSelfPermission(UTSAndroid.getUniActivity()!, Manifest.permission.ACCESS_FINE_LOCATION) != PackageManager.PERMISSION_GRANTED) { - ActivityCompat.requestPermissions(UTSAndroid.getUniActivity()!, permissionWifi, requestCode) + ActivityCompat.requestPermissions(UTSAndroid.getUniActivity()!, permissionWifi, requestCode.toInt()) // 尚不具备权限,返回错误 option.fail?.(result) option.complete?.(result) -- GitLab