mirror of
https://github.com/HChaZZY/PiliPlus.git
synced 2025-12-06 09:13:48 +08:00
mod: handle http2https
Signed-off-by: bggRGjQaUbCoE <githubaccount56556@proton.me>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:PiliPalaX/http/init.dart';
|
||||
import 'package:PiliPalaX/utils/extension.dart';
|
||||
import 'package:device_info_plus/device_info_plus.dart';
|
||||
import 'package:dio/dio.dart';
|
||||
import 'package:flutter/material.dart';
|
||||
@@ -107,7 +108,7 @@ class DownloadUtils {
|
||||
},
|
||||
);
|
||||
var response = await Request().get(
|
||||
imgList[i],
|
||||
imgList[i].http2https,
|
||||
options: Options(responseType: ResponseType.bytes),
|
||||
);
|
||||
String picName =
|
||||
|
||||
Reference in New Issue
Block a user