图片上传修改

This commit is contained in:
cwchen 2024-03-23 14:05:35 +08:00
parent d64e7e759d
commit 635d28025f
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ public class HumanServiceImpl implements HumanService {
if (file != null) {
Result result = remoteFileService.singleUploadFile(file, SecurityConstants.INNER);
if(result != null && result.getCode() == HttpStatus.ERROR) {
return AjaxResult.error("人员照片上传失败");
log.error("人员照片上传失败");
}else if(result != null && result.getCode() == HttpStatus.SUCCESS && result.getData() != null){
String jsonString = JSON.toJSONString(result.getData());
JSONObject item = JSON.parseObject(jsonString);