From 55c6c13e505e43f007d10663749bfd1250decabe Mon Sep 17 00:00:00 2001 From: lizhiyuan Date: Mon, 29 Aug 2022 22:50:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=9B=BE=E7=89=87=E6=9C=8D=E5=8A=A1?= =?UTF-8?q?=E5=99=A8=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/workerthreads.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/workerthreads.cpp b/src/workerthreads.cpp index fa8bf0c..4e3142d 100644 --- a/src/workerthreads.cpp +++ b/src/workerthreads.cpp @@ -48,8 +48,12 @@ void SpkAppInfoLoaderThread::run() QString deburl = serverUrl; deburl = deburl.left(urladdress.length() - 1); - urladdress = "https://d.store.deepinos.org.cn/"; // 使用图片专用服务器请保留这行,删除后将使用源服务器 - urladdress = urladdress.left(urladdress.length() - 1); + + QStringList url_ = targetUrl.toString().replace("//", "/").split("/"); + urladdress = "https://" + url_[1]; + // 不使用图片专用服务器 + // urladdress = "https://d.store.deepinos.org.cn"; // 使用图片专用服务器请保留这行,删除后将使用源服务器 + for(int i = 3; i < downloadurl.size(); i++) {