NEW:add plugin download address

jira:[for new env]

Change-Id: I3b10a4ae6e54af46c15fe2e7beb5fbde8e7efe32
This commit is contained in:
tao wang 2024-01-19 11:34:06 +08:00 committed by Lane.Wei
parent 68463ac7b3
commit a1cb1766d2
1 changed files with 24 additions and 0 deletions

View File

@ -1386,6 +1386,18 @@ std::string GUI_App::get_http_url(std::string country_code, std::string path)
else if (country_code == "ENV_CN_PRE") {
url = "https://api-pre.bambu-lab.com/";
}
else if (country_code == "NEW_ENV_DEV_HOST")
{
url = "https://api-dev.bambulab.net/";
}
else if (country_code == "NEW_ENV_QAT_HOST")
{
url = "https://api-qa.bambulab.net/";
}
else if (country_code == "NEW_ENV_PRE_HOST")
{
url = "https://api-pre.bambulab.net/";
}
else {
url = "https://api.bambulab.com/";
}
@ -1412,6 +1424,18 @@ std::string GUI_App::get_model_http_url(std::string country_code)
else if (country_code == "ENV_CN_PRE") {
url = "https://makerhub-pre.bambu-lab.com/";
}
else if (country_code == "NEW_ENV_DEV_HOST")
{
url = "https://makerhub-dev.bambulab.net/";
}
else if (country_code == "NEW_ENV_QAT_HOST")
{
url = "https://makerhub-qa.bambulab.net/";
}
else if (country_code == "NEW_ENV_PRE_HOST")
{
url = "https://makerhub-pre.bambulab.net/";
}
else {
url = "https://makerworld.com/";
}