mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
fix: 默认jpe替换为jpg
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user