燕大AI报警信息图片存储地址信息

2024年1月24日测试
guoyuepeng 2024-02-04 17:44:15 +08:00
parent 6aa940170a
commit 5a810cba2f
1 changed files with 1 additions and 1 deletions

View File

@ -370,7 +370,7 @@ public class AIWarningController extends BaseController {
if (Tools.notEmpty(jsonObject.get("IMG_PATH").toString())) { if (Tools.notEmpty(jsonObject.get("IMG_PATH").toString())) {
String imgName = this.get32UUID() + ".jpg"; String imgName = this.get32UUID() + ".jpg";
String filePath = Const.FILEPATHAITP + "/" + DateUtil.getDays(); String filePath = Const.FILEPATHAITP + "/" + DateUtil.getDays();
Base64Utils.decodeToFile(Const.basePath + filePath + "/" + imgName, jsonObject.get("IMG_PATH").toString().replace("data:image/jpeg;base64,", "")); Base64Utils.decodeToFile(Smb.basePath + filePath + "/" + imgName, jsonObject.get("IMG_PATH").toString().replace("data:image/jpeg;base64,", ""));
pd.put("IMG_PATH", filePath + "/" + imgName); //报警图片(路径) pd.put("IMG_PATH", filePath + "/" + imgName); //报警图片(路径)
} else { } else {
map.put("returnCode", "1001"); //缺少同步信息 map.put("returnCode", "1001"); //缺少同步信息