mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-19 00:32:21 +08:00
fix: 对oss进行URL转译
This commit is contained in:
parent
4d7e766d75
commit
d7f0ee983b
@ -116,7 +116,7 @@ void DownloadController::startDownload(const QString &url)
|
|||||||
else{
|
else{
|
||||||
for (int i = 0; i < domains.size(); i++)
|
for (int i = 0; i < domains.size(); i++)
|
||||||
{
|
{
|
||||||
command.append(replaceDomain(url, domains.at(i)).toUtf8());
|
command.append(replaceDomain(url, domains.at(i)).replace("+","%2B").toUtf8()); //对+进行转译,避免oss出错
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1303,6 +1303,7 @@ void Widget::on_webEngineView_urlChanged(const QUrl &arg1)
|
|||||||
ui->stackedWidget->setCurrentIndex(2);
|
ui->stackedWidget->setCurrentIndex(2);
|
||||||
|
|
||||||
qDebug() << "程序跳转链接地址:" << arg1;
|
qDebug() << "程序跳转链接地址:" << arg1;
|
||||||
|
QString url = arg1.toString();
|
||||||
|
|
||||||
/*
|
/*
|
||||||
load.cancel(); // 打开并发加载线程前关闭正在执行的线程
|
load.cancel(); // 打开并发加载线程前关闭正在执行的线程
|
||||||
@ -1313,7 +1314,7 @@ void Widget::on_webEngineView_urlChanged(const QUrl &arg1)
|
|||||||
*/
|
*/
|
||||||
appinfoLoadThread.requestInterruption();
|
appinfoLoadThread.requestInterruption();
|
||||||
appinfoLoadThread.wait(100);
|
appinfoLoadThread.wait(100);
|
||||||
appinfoLoadThread.setUrl(arg1);
|
appinfoLoadThread.setUrl(url.replace("+","%2B")); //对+进行转译,避免oss出错
|
||||||
appinfoLoadThread.start();
|
appinfoLoadThread.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user