FIX: [STUDIO-4546] not show model mall on init

Change-Id: Icebbebb6c272292725f8a4d0235b8342c3dfd9a2
Jira: STUDIO-4546
This commit is contained in:
chunmao.guo 2023-10-07 15:29:42 +08:00 committed by Lane.Wei
parent d7778359ad
commit f183058b20
2 changed files with 2 additions and 2 deletions

View File

@ -3018,7 +3018,7 @@ void GUI_App::update_publish_status()
bool GUI_App::has_model_mall()
{
if (auto cc = app_config->get_country_code(); cc == "CN" || cc == "")
if (auto cc = app_config->get_region(); cc == "CNH" || cc == "China" || cc == "")
return false;
return true;
}

View File

@ -497,7 +497,7 @@ void WebViewPanel::get_design_staffpick(int offset, int limit, std::function<voi
.header("Content-Type", "application/json")
.on_complete([this, callback](std::string body, unsigned status) { callback(body); })
.on_error([this, callback](std::string body, std::string error, unsigned status) {
callback(body);
callback(body + error);
})
.perform();
}