Skip to content

Commit 3560894

Browse files
committed
修改版本文件下载源
1 parent 9c318b7 commit 3560894

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

Update/DownLoadHandle.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ CDownLoadHandleVersionFile::CDownLoadHandleVersionFile()
5151

5252
int CDownLoadHandleVersionFile::OnError(int nErrorCode, const std::string &szErr)
5353
{
54+
LOG_MODEL_ERROR("CDownLoadHandleVersionFile", "Download version file error:%d", nErrorCode);
55+
return 0;
5456
emit GET_MAINWINDOW->sigUpdateExec(nErrorCode, m_szFile);
5557
return 0;
5658
}
@@ -136,7 +138,8 @@ int CDownLoadHandleVersionFile::Start()
136138
szFile += RABBITIM_SYSTEM;
137139
szFile += ".xml";
138140
m_szFile = CGlobal::Instance()->GetDirApplicationDownLoad() + QDir::separator() + szFile;
139-
QString szUrl = "https://code.csdn.net/kl222/rabbitim/blob/Reconstruction/Update/" + szFile;
141+
//TODO:设置下载版本文件
142+
QString szUrl = "https://github.com/KangLin/rabbitim/blob/master/Update/" + szFile;
140143

141144
m_DownLoad.Start(szUrl.toStdString(),
142145
m_szFile.toStdString(),

main.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ int main(int argc, char *argv[])
4242
w.show();//*/
4343

4444
#ifdef RABBITIM_USER_LIBCURL
45+
//检查版本更新
4546
CDownLoadHandleVersionFile update;
4647
update.Start();
4748
#endif

0 commit comments

Comments
 (0)