From b1a6f7996110aea1ef972d56a21af510b4a632bf Mon Sep 17 00:00:00 2001 From: lizhiyuan Date: Mon, 29 Aug 2022 21:06:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=8B=BC=E5=86=99=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/workerthreads.cpp | 6 +++--- src/workerthreads.h | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/workerthreads.cpp b/src/workerthreads.cpp index 3188b27..fa8bf0c 100644 --- a/src/workerthreads.cpp +++ b/src/workerthreads.cpp @@ -21,12 +21,12 @@ void SpkAppInfoLoaderThread::run() .onResponse([this](QString downloadTimesFeedback) { qDebug() << "请求应用下载量信息 " << downloadTimesFeedback; - this->downdloadTimes = downloadTimesFeedback.replace("\n",""); + this->downloadTimes = downloadTimesFeedback.replace("\n",""); }) .onError([this](QString errorStr) { qDebug() << "请求下载量失败:" << errorStr; - this->downdloadTimes = "0"; + this->downloadTimes = "0"; }) .block() .timeout(3*1000) @@ -66,7 +66,7 @@ void SpkAppInfoLoaderThread::run() QString details; details = tr("PkgName: ") + json["Pkgname"].toString() + "\n"; details += tr("Version: ") + json["Version"].toString() + "\n"; - details += tr("Download Times: ") + this->downdloadTimes + "\n"; + details += tr("Download Times: ") + this->downloadTimes + "\n"; if(!json["Author"].toString().trimmed().isEmpty()) { details += tr("Author: ") + json["Author"].toString() + "\n"; diff --git a/src/workerthreads.h b/src/workerthreads.h index 0fa69a1..52b38da 100644 --- a/src/workerthreads.h +++ b/src/workerthreads.h @@ -23,7 +23,7 @@ protected: private: QUrl targetUrl; QString serverUrl; - QString downdloadTimes; + QString downloadTimes; bool finishedDownload = false; int downloaderRetval = 0;