mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-23 10:42:20 +08:00
fix: loongarch bad applist
This commit is contained in:
parent
09c2d41118
commit
6768058358
@ -50,6 +50,8 @@ void AppListPage::getAppList(QString type)
|
||||
url = api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/?" + theme + "&" + "arch=x86";
|
||||
#ifdef __aarch64__
|
||||
url = api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/?" + theme + "&" + "arch=aarch64";
|
||||
#elif __loongarch__
|
||||
url = api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/?" + theme + "&" + "arch=loong64";
|
||||
#endif
|
||||
}
|
||||
else
|
||||
@ -57,6 +59,8 @@ void AppListPage::getAppList(QString type)
|
||||
url = api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/applist?type=" + type + "&" + theme + "&" + "arch=x86";
|
||||
#ifdef __aarch64__
|
||||
url = api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/applist?type=" + type + "&" + theme + "&" + "arch=aarch64";
|
||||
#elif __loongarch__
|
||||
url = api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/applist?type=" + type + "&" + theme + "&" + "arch=loong64";
|
||||
#endif
|
||||
}
|
||||
|
||||
@ -83,6 +87,8 @@ void AppListPage::getSearchList(const QString &keyword)
|
||||
url = api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/search?keywords=" + QUrl::toPercentEncoding(keyword) + "&" + theme + "&" + "arch=x86";
|
||||
#ifdef __aarch64__
|
||||
url = api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/search?keywords=" + QUrl::toPercentEncoding(keyword) + "&" + theme + "&" + "arch=aarch64";
|
||||
#elif __loongarch__
|
||||
url = api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/search?keywords=" + QUrl::toPercentEncoding(keyword) + "&" + theme + "&" + "arch=loong64";
|
||||
#endif
|
||||
ui->webEngineView->setUrl(url);
|
||||
delete api;
|
||||
|
Loading…
x
Reference in New Issue
Block a user