|
|
|
@ -451,7 +451,7 @@ public class AppController extends BaseController
|
|
|
|
|
// AI接口异常,需要重置当前记录状态
|
|
|
|
|
updateRecordStatus(recordId, "0");
|
|
|
|
|
logger.error("AI result exception, msg is {}", e.getMessage());
|
|
|
|
|
return AjaxResult.error("AI result exception, please try again!", data);
|
|
|
|
|
return AjaxResult.error("AI result exception, please try again!");
|
|
|
|
|
}
|
|
|
|
|
if (StringUtils.isEmpty(result)) {
|
|
|
|
|
// AI接口非正常返回,需要重置当前记录状态
|
|
|
|
@ -729,7 +729,7 @@ public class AppController extends BaseController
|
|
|
|
|
}
|
|
|
|
|
if (null != imageStr && !"".equals(imageStr)) {
|
|
|
|
|
// 将base64转为图片存在服务器,并将返回值置空
|
|
|
|
|
logger.info("image name is '{}', image str is '{}'", entry.getKey(), imageStr);
|
|
|
|
|
logger.info("image name is '{}', image str is '{}'", entry.getKey(), imageStr.substring(0, 20));
|
|
|
|
|
String path = FileUtils.GenerateImage(imageStr, entry.getKey());
|
|
|
|
|
TImage tImage = new TImage();
|
|
|
|
|
tImage.setName(entry.getKey());
|
|
|
|
|