ENH: Configure CN domain name in Studio and use it for rating function

Jira: XXXX

Change-Id: I497f4c49e9f0e5bb005e90494dfd89c535ead2c3
(cherry picked from commit 56f25a14c5c1e6bf124c45bf3a23d1120fa89690)
This commit is contained in:
maosheng.wei 2024-05-08 11:47:27 +08:00 committed by Lane.Wei
parent 981f626165
commit a635619607
1 changed files with 2 additions and 2 deletions

View File

@ -128,8 +128,8 @@ static wxImage fail_image;
static void market_model_scoring_page(int design_id)
{
std::string url;
std::string country_code = GUI::wxGetApp().app_config->get_country_code();
std::string model_http_url = GUI::wxGetApp().get_model_http_url(country_code);
std::string country_code = GUI::wxGetApp().app_config->get_country_code();
url = GUI::wxGetApp().get_model_http_url(country_code);
if (GUI::wxGetApp().getAgent()->get_model_mall_detail_url(&url, std::to_string(design_id)) == 0) {
std::string user_id = GUI::wxGetApp().getAgent()->get_user_id();
boost::algorithm::replace_first(url, "models", "u/" + user_id + "/rating");