NEW: refine HMS Panel

link to hms wiki page

Change-Id: I1b1c5b2021f9f68320235ce17580ae80ea9b82a3
Signed-off-by: Stone Li <stone.li@bambulab.com>
This commit is contained in:
liz.li 2022-08-11 19:01:56 +08:00 committed by Lane.Wei
parent 6a065401d1
commit 6e1e56be18
8 changed files with 184 additions and 19 deletions

View file

@ -214,17 +214,14 @@ int HMSQuery::check_hms_info()
return result;
}
std::string get_hms_wiki_url(int code)
std::string get_hms_wiki_url(std::string error_code)
{
AppConfig* config = wxGetApp().app_config;
if (!config) return "";
char buf[32];
::sprintf(buf, "%08X", code);
std::string error_code = std::string(buf);
std::string hms_host = wxGetApp().app_config->get_hms_host();
std::string lang_code = wxGetApp().app_config->get_language_code();
std::string url = (boost::format("https://%1%/index.php?e=%2%&s=hms&lang=%3%")
std::string url = (boost::format("https://%1%/index.php?e=%2%&s=device_hms&lang=%3%")
% hms_host
% error_code
% lang_code).str();