diff --git a/uni_modules/uni-wifi/utssdk/app-android/index.uts b/uni_modules/uni-wifi/utssdk/app-android/index.uts index 43965368256327549f164ae4e3708355851b9eb8..5669130250ad88dc71e1e0f611e72dff347ac9e0 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)