mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-09-18 09:02:21 +08:00
fix: 新后端多架构
This commit is contained in:
parent
dab4606e9b
commit
795a6ca709
@ -53,14 +53,14 @@ void AppListPage::getAppList(QString type)
|
|||||||
}
|
}
|
||||||
if (type == "")
|
if (type == "")
|
||||||
{
|
{
|
||||||
url = api->getServerUrl() + "store/#/flamescion/?" + theme;
|
url = api->getServerUrl() + api->getArchDir() + "/#/flamescion/?" + theme;
|
||||||
#ifdef __aarch64__
|
#ifdef __aarch64__
|
||||||
url = api->getServerUrl() + "aarch64-store/#/"+ theme;
|
url = api->getServerUrl() + "aarch64-store/#/"+ theme;
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
url = api->getServerUrl() + "store/#/flamescion/applist?type=" + type + "&" + theme;
|
url = api->getServerUrl() + api->getArchDir() + "/#/flamescion/applist?type=" + type + "&" + theme;
|
||||||
#ifdef __aarch64__
|
#ifdef __aarch64__
|
||||||
url = api->getServerUrl() + "aarch64-store/#/"+ theme + type;
|
url = api->getServerUrl() + "aarch64-store/#/"+ theme + type;
|
||||||
#endif
|
#endif
|
||||||
@ -85,7 +85,7 @@ void AppListPage::getSearchList(const QString &keyword)
|
|||||||
{
|
{
|
||||||
theme = "theme=light";
|
theme = "theme=light";
|
||||||
}
|
}
|
||||||
url = api->getServerUrl() + "store/#/flamescion/search?keywords=" + QUrl::toPercentEncoding(keyword) + "&" + theme;
|
url = api->getServerUrl() + api->getArchDir() + "/#/flamescion/search?keywords=" + QUrl::toPercentEncoding(keyword) + "&" + theme;
|
||||||
ui->webEngineView->setUrl(url);
|
ui->webEngineView->setUrl(url);
|
||||||
delete api;
|
delete api;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user