FIX: support HMS json for 094

jira: [STUDIO-9512]
Change-Id: I2b9a0d696137367a00850c9dc07ee77a14e3b772
(cherry picked from commit 34a136b283a5a4b86444b29b0f7d7531ec349cb7)
This commit is contained in:
xin.zhang
2025-01-06 15:43:22 +08:00
committed by Noisyfox
parent 3e9a8b8b3a
commit 7c7c2e23cc
5 changed files with 30219 additions and 23 deletions

View File

@@ -27,8 +27,8 @@ protected:
json m_hms_action_json;
mutable std::mutex m_hms_mutex;
int download_hms_related(std::string hms_type, json *receive_json, std::string dev_type);
int load_from_local(std::string &version_info, std::string hms_type, json *load_json, std::string dev_type);
int download_hms_related(const std::string& hms_type, const std::string& dev_type, json *receive_json);
int load_from_local(const std::string& hms_type, const std::string& dev_type, json * receive_json, std::string& version_info);
int save_to_local(std::string lang, std::string hms_type, std::string dev_type, json save_json);
std::string get_hms_file(std::string hms_type, std::string lang = std::string("en"), std::string dev_type = "");
wxString _query_hms_msg(std::string long_error_code, std::string lang_code = std::string("en")) const;
@@ -44,7 +44,9 @@ public:
static std::string hms_language_code();
static std::string build_query_params(std::string& lang);
bool check_local_file(std::string dev_type);
bool save_local = false;
private:
void copy_from_data_dir_to_local();
};
int get_hms_info_version(std::string &version);