From 9b3ee731c2833c7312f88ef393389db5068f6bed Mon Sep 17 00:00:00 2001 From: wangliankun Date: Tue, 28 Oct 2025 16:37:16 +0800 Subject: [PATCH] =?UTF-8?q?feat(ios):=E4=BF=AE=E6=94=B9iOS=E7=85=A7?= =?UTF-8?q?=E7=89=87=E8=AF=B7=E6=B1=82=E6=9D=83=E9=99=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/upload_image/down_load_image_tool.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/upload_image/down_load_image_tool.dart b/lib/upload_image/down_load_image_tool.dart index 58915ee..1e7906a 100644 --- a/lib/upload_image/down_load_image_tool.dart +++ b/lib/upload_image/down_load_image_tool.dart @@ -15,8 +15,8 @@ class DownLoadImageTool { // 请求照片库权限 static Future requestPhotoPermission() async { // 检查当前权限状态 - var status = await Permission.photos.status; - + // var status = await Permission.photos.status; + var status = await Permission.storage.request(); if (status.isDenied) { // 请求权限 status = await Permission.photos.request();