fix: 默认jpe替换为jpg

This commit is contained in:
orz12
2024-03-22 00:30:23 +08:00
parent 9e57805ab6
commit 71757ada97
3 changed files with 10 additions and 6 deletions

View File

@@ -23,7 +23,7 @@ class DownloadUtils {
var response = await Dio()
.get(imgUrl, options: Options(responseType: ResponseType.bytes));
String picName =
"PiliPalaX_${imgType}_${DateTime.now().toString().split('-').join()}";
"${imgType}_${DateTime.now().toString().replaceAll(' ', '_').replaceAll(':', '-').split('.').first}";
final SaveResult result = await SaverGallery.saveImage(
Uint8List.fromList(response.data),
quality: 100,