使用hardcode的方式修改了url

请在后续版本改善
仅用于测试!!!!
web请求方式被改回旧版了,请在柚子发布新web后改回
This commit is contained in:
2023-03-05 19:11:21 +08:00
parent 8f39710cdb
commit cf59aeb4eb
4 changed files with 18 additions and 13 deletions
+5 -5
View File
@@ -37,19 +37,19 @@ void AppListPage::getAppList(QString type)
QString theme;
if (isDark)
{
theme = "theme=dark";
theme = "dark";
}
else
{
theme = "theme=light";
theme = "";
}
if (type == "")
{
url = api->getServerUrl() + "store/#/flamescion/?" + theme;
url = api->getServerUrl() + "aarch64-store/#/"+ theme;
}
else
{
url = api->getServerUrl() + "store/#/flamescion/applist?type=" + type + "&" + theme;
url = api->getServerUrl() + "aarch64-store/#/"+ theme + type;
}
ui->webEngineView->setUrl(url);
@@ -86,7 +86,7 @@ void AppListPage::on_webEngineView_urlChanged(const QUrl &arg1)
if (arg1.path().right(8) == "app.json")
{
QString url = arg1.toString();
url = url.mid(url.indexOf("/store/"));
url = url.mid(url.indexOf("/aarch64-store/"));
url = "spk:/" + url;
url = url.mid(0, url.indexOf("/app.json"));
qDebug() << "程序跳转链接地址:" << url;