From 6768058358e3ee0532a6826d9e7a602421207119 Mon Sep 17 00:00:00 2001 From: shenmo Date: Fri, 22 Mar 2024 00:34:42 +0800 Subject: [PATCH] fix: loongarch bad applist --- src/pages/applistpage.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/pages/applistpage.cpp b/src/pages/applistpage.cpp index 38f5f56..19ff848 100644 --- a/src/pages/applistpage.cpp +++ b/src/pages/applistpage.cpp @@ -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;