FIX: [4670] Cloud disabled rating interface, displaying error prompt

Jira: STUDIO-4670

Change-Id: Ie571fd042010d5972aaef76063a52b67ef7ccb6a
This commit is contained in:
maosheng.wei 2023-10-08 10:23:34 +08:00 committed by Lane.Wei
parent 1c705d85e9
commit 01968ce29f
3 changed files with 11 additions and 2 deletions

View file

@ -4585,6 +4585,7 @@ void MachineObject::update_model_task()
request_model_result++;
BOOST_LOG_TRIVIAL(info) << "request times: " << request_model_result << " http code: " << http_code;
rating_info = new RatingInfo();
rating_info->http_code = http_code;
if (0 == res && 200 == http_code) {
try {
json rating_json = json::parse(rating_result);