mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-13 01:37:53 -06:00
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:
parent
6a065401d1
commit
6e1e56be18
8 changed files with 184 additions and 19 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue