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:
parent
981f626165
commit
a635619607
|
@ -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");
|
||||
|
|
Loading…
Reference in New Issue