diff --git a/bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart b/bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart index b49db65..074de48 100755 --- a/bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart +++ b/bytedesk_kefu/lib/ui/chat/page/chat_kf_page.dart @@ -1276,7 +1276,7 @@ class _ChatKFPageState extends State // 选择图片 Future _pickImage() async { - bool permission = await Permission.camera.isGranted; + bool permission = await Permission.storage.isGranted; if (!permission) { Alert.show( @@ -1541,7 +1541,7 @@ class _ChatKFPageState extends State Future _pickVideo() async { try { - bool permission = await Permission.camera.isGranted; + bool permission = await Permission.storage.isGranted; if (!permission) { Alert.show( context,