|
|
@ -6,6 +6,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
import com.ruoyi.common.annotation.Log;
|
|
|
|
import com.ruoyi.common.config.RuoYiConfig;
|
|
|
|
import com.ruoyi.common.config.RuoYiConfig;
|
|
|
|
import com.ruoyi.common.constant.Constants;
|
|
|
|
import com.ruoyi.common.constant.Constants;
|
|
|
|
|
|
|
|
import com.ruoyi.common.constant.HttpStatus;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.controller.BaseController;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.domain.AjaxResult;
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
|
import com.ruoyi.common.core.page.TableDataInfo;
|
|
|
@ -474,7 +475,7 @@ public class AppController extends BaseController
|
|
|
|
// AI接口异常,需要重置当前记录状态
|
|
|
|
// AI接口异常,需要重置当前记录状态
|
|
|
|
updateRecordStatus(recordId, "0");
|
|
|
|
updateRecordStatus(recordId, "0");
|
|
|
|
logger.error("AI result exception, msg is {}", e.getMessage());
|
|
|
|
logger.error("AI result exception, msg is {}", e.getMessage());
|
|
|
|
return AjaxResult.error("AI result exception, message is {}", e.getMessage());
|
|
|
|
return AjaxResult.error(HttpStatus.AI_EXCEPTION, "AI接口调用失败");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (StringUtils.isEmpty(result)) {
|
|
|
|
if (StringUtils.isEmpty(result)) {
|
|
|
|
// AI接口非正常返回,需要重置当前记录状态
|
|
|
|
// AI接口非正常返回,需要重置当前记录状态
|
|
|
|