图片上传修改
This commit is contained in:
parent
d64e7e759d
commit
635d28025f
|
|
@ -94,7 +94,7 @@ public class HumanServiceImpl implements HumanService {
|
||||||
if (file != null) {
|
if (file != null) {
|
||||||
Result result = remoteFileService.singleUploadFile(file, SecurityConstants.INNER);
|
Result result = remoteFileService.singleUploadFile(file, SecurityConstants.INNER);
|
||||||
if(result != null && result.getCode() == HttpStatus.ERROR) {
|
if(result != null && result.getCode() == HttpStatus.ERROR) {
|
||||||
return AjaxResult.error("人员照片上传失败");
|
log.error("人员照片上传失败");
|
||||||
}else if(result != null && result.getCode() == HttpStatus.SUCCESS && result.getData() != null){
|
}else if(result != null && result.getCode() == HttpStatus.SUCCESS && result.getData() != null){
|
||||||
String jsonString = JSON.toJSONString(result.getData());
|
String jsonString = JSON.toJSONString(result.getData());
|
||||||
JSONObject item = JSON.parseObject(jsonString);
|
JSONObject item = JSON.parseObject(jsonString);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue