arm架构applist支持

This commit is contained in:
shenmo 2023-04-25 19:29:11 +08:00
parent 842f0893b3
commit cb66f5e903

View File

@ -47,11 +47,17 @@ void AppListPage::getAppList(QString type)
} }
if (type == "") if (type == "")
{ {
url = api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/?" + theme; url = api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/?" + theme + "&" + "arch=x86";
#ifdef __aarch64__
url = api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/?" + theme + "&" + "arch=aarch64";
#endif
} }
else else
{ {
url = api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/applist?type=" + type + "&" + theme; 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";
#endif
} }
ui->webEngineView->setUrl(url); ui->webEngineView->setUrl(url);