modify:修改链接

This commit is contained in:
2026-03-23 14:59:12 +08:00
parent b090e8ee43
commit a4b96b27e0
2 changed files with 6 additions and 9 deletions
-1
View File
@@ -36,7 +36,6 @@ int main(int argc, char *argv[])
APPNAME = "";
APPVERSION = "0";
}
CHECK_URL = ORIGIN_URL + APPNAME + "/updates.json";
UpdaterDialog w;
w.show();
+6 -8
View File
@@ -10,14 +10,11 @@
#include <private/qzipreader_p.h>
QString CHECK_URL = "https://file.tianzd.cn/TianZD/deploy/raw/branch/master/";
QString ORIGIN_URL = "https://file.tianzd.cn/TianZD/deploy/raw/branch/master/";
QString CHECK_URL = QStringLiteral("https://gitea.tianzd.cn/TianZD/deploy/raw/branch/master/%1/updates.json");
//QString DOWNLOAD_URL = QStringLiteral("https://update.tianzd.cn/deploy/");
QString PLATFORM = "windows";
QString APPVERSION = "";
QString APPNAME = "";
QString APPDATE = "0";
QString MODIFYCNT = "0";
@@ -121,9 +118,9 @@ void UpdaterDialog::on_btn_check_clicked()
m_pManager = new QNetworkAccessManager(this);
connect(m_pManager, SIGNAL(finished(QNetworkReply *)), this, SLOT(onCheckReply(QNetworkReply *)));
}
CHECK_URL = ORIGIN_URL + APPNAME + "/updates.json";
qDebug() << APPNAME << CHECK_URL;
QNetworkRequest request(CHECK_URL);
QString _url = CHECK_URL.arg(APPNAME);
qDebug() << APPNAME << _url;
QNetworkRequest request(_url);
m_pManager->get(request);
}
@@ -343,6 +340,7 @@ void UpdaterDialog::on_btn_update_clicked()
QString _url = m_bDownloadFullExe ? m_fullUrl : m_patchUrl;
m_pDownloader->startDownload(_url);
qDebug() << _url;
}
void UpdaterDialog::on_btn_cancel_clicked()