From 2f1a106cd327e968473fd7032abbfc13357edb69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=9B=E4=B8=96=E7=BA=AA=E8=BE=B9=E7=BC=98?= Date: Sat, 26 Feb 2022 07:27:26 +0000 Subject: [PATCH] =?UTF-8?q?Json=20Add=20url=20In=20results=20Description:J?= =?UTF-8?q?son=20Add=20url=20In=20results=20Signed-off-by:=20=E7=8E=8B?= =?UTF-8?q?=E7=90=AA=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- engine/include/update_service.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/include/update_service.h b/engine/include/update_service.h index 950e3ef6..630f035a 100755 --- a/engine/include/update_service.h +++ b/engine/include/update_service.h @@ -60,8 +60,8 @@ public: int32_t RebootAndClean(const std::string &miscFile, const std::string &cmd) override; int32_t RebootAndInstall(const std::string &miscFile, const std::string &packageName) override; - static int32_t ParseJsonFile(const std::vector &buffer, VersionInfo &info); - static int32_t ReadCheckVersionResult(const cJSON* results, VersionInfo &info); + static int32_t ParseJsonFile(const std::vector &buffer, VersionInfo &info, std::string &url); + static int32_t ReadCheckVersionResult(const cJSON* results, VersionInfo &info, std::string &url); static int32_t ReadCheckVersiondescriptInfo(const cJSON *descriptInfo, VersionInfo &info); #ifndef UPDATER_UT protected: @@ -93,6 +93,7 @@ private: sptr updateCallback_ { nullptr }; DownloadThread *downloadThread_ { nullptr }; UpdateContext updateContext_ {}; + std::string downloadUrl_; }; } } // namespace OHOS -- Gitee