mirror of
https://gitee.com/spark-store-project/spark-store
synced 2025-10-09 11:52:21 +08:00
修改: src/pages/applistpage.cpp
修改: tool/ss-feedback/sender-d
This commit is contained in:
parent
6768058358
commit
eaa335cc04
@ -1,7 +1,8 @@
|
|||||||
#include "applistpage.h"
|
#include "applistpage.h"
|
||||||
#include "ui_applistpage.h"
|
#include "ui_applistpage.h"
|
||||||
|
|
||||||
|
#define BUILD_URL(theme, arch) \
|
||||||
|
api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/" + (type.isEmpty() ? "?" : "applist?type=" + type + "&") + theme + "&arch=" + arch
|
||||||
|
|
||||||
AppListPage::AppListPage(QWidget *parent) : QWidget(parent),
|
AppListPage::AppListPage(QWidget *parent) : QWidget(parent),
|
||||||
ui(new Ui::AppListPage)
|
ui(new Ui::AppListPage)
|
||||||
@ -45,24 +46,14 @@ void AppListPage::getAppList(QString type)
|
|||||||
{
|
{
|
||||||
theme = "theme=light";
|
theme = "theme=light";
|
||||||
}
|
}
|
||||||
if (type == "")
|
|
||||||
{
|
|
||||||
url = api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/?" + theme + "&" + "arch=x86";
|
|
||||||
#ifdef __aarch64__
|
#ifdef __aarch64__
|
||||||
url = api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/?" + theme + "&" + "arch=aarch64";
|
url = BUILD_URL(theme, "aarch64");
|
||||||
#elif __loongarch__
|
#elif __loongarch__
|
||||||
url = api->getServerUrl() + SparkAPI::getArchDir() + "/#/flamescion/?" + theme + "&" + "arch=loong64";
|
url = BUILD_URL(theme, "loong64");
|
||||||
|
#else
|
||||||
|
url = BUILD_URL(theme, "x86");
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
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
|
|
||||||
}
|
|
||||||
|
|
||||||
ui->webEngineView->setUrl(url);
|
ui->webEngineView->setUrl(url);
|
||||||
delete api;
|
delete api;
|
||||||
|
@ -9,6 +9,9 @@ case `arch` in
|
|||||||
aarch64)
|
aarch64)
|
||||||
STORE_URL="aarch64-store"
|
STORE_URL="aarch64-store"
|
||||||
;;
|
;;
|
||||||
|
loongarch64)
|
||||||
|
STORE_URL="loong64-store"
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
if [ -z $1 ] || [ "$2" != "HD70642" ];then
|
if [ -z $1 ] || [ "$2" != "HD70642" ];then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user