Commit aa2809e6 by yao.xiao

修改-错误提示修改

parent fa60bcc6
...@@ -370,7 +370,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service. ...@@ -370,7 +370,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
e.printStackTrace(); e.printStackTrace();
} }
if (img == null || img.getWidth(null) <= 0 || img.getHeight(null) <= 0) { if (img == null || img.getWidth(null) <= 0 || img.getHeight(null) <= 0) {
mediaGetRespVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830014"))); mediaGetRespVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830003")));
return mediaGetRespVO; return mediaGetRespVO;
}else { }else {
double width = img.getWidth(null); double width = img.getWidth(null);
...@@ -380,10 +380,10 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service. ...@@ -380,10 +380,10 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
if (value !=scaleDouble) { if (value !=scaleDouble) {
if (scaleDouble == 1){ if (scaleDouble == 1){
//上传头像尺寸比例为1:1 //上传头像尺寸比例为1:1
mediaGetRespVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830016"))); mediaGetRespVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830005")));
return mediaGetRespVO; return mediaGetRespVO;
}else if(scaleDouble ==0.75) { }else if(scaleDouble ==0.75) {
mediaGetRespVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830015"))); mediaGetRespVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830004")));
return mediaGetRespVO; return mediaGetRespVO;
} }
} }
...@@ -415,7 +415,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service. ...@@ -415,7 +415,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
if (!fileUploads.isEmpty()){ if (!fileUploads.isEmpty()){
int size = lifeImgUrls.size()+fileUploads.size(); int size = lifeImgUrls.size()+fileUploads.size();
if (size>=4){ if (size>=4){
return new CommonResult(false, ZHBErrorConfig.getErrorInfo("830019")); return new CommonResult(false, ZHBErrorConfig.getErrorInfo("830006"));
} }
} }
} }
...@@ -481,11 +481,11 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service. ...@@ -481,11 +481,11 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
if (!(boolean)input.get("success")){ if (!(boolean)input.get("success")){
if (targetUseFor==1){ if (targetUseFor==1){
//地址转流失败 //地址转流失败
return ZHBErrorConfig.getErrorInfo("830056"); return ZHBErrorConfig.getErrorInfo("830007");
}else if(targetUseFor==2){ }else if(targetUseFor==2){
return ZHBErrorConfig.getErrorInfo("830057"); return ZHBErrorConfig.getErrorInfo("830008");
}else if(targetUseFor==9){ }else if(targetUseFor==9){
return ZHBErrorConfig.getErrorInfo("830058"); return ZHBErrorConfig.getErrorInfo("830009");
} }
} }
//获取头像流 //获取头像流
...@@ -493,7 +493,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service. ...@@ -493,7 +493,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
//判断图像尺寸 //判断图像尺寸
BufferedImage img = ImageIO.read(inputStream); BufferedImage img = ImageIO.read(inputStream);
if (img == null || img.getWidth(null) <= 0 || img.getHeight(null) <= 0) { if (img == null || img.getWidth(null) <= 0 || img.getHeight(null) <= 0) {
return ZHBErrorConfig.getErrorInfo("830014"); return ZHBErrorConfig.getErrorInfo("830003");
}else { }else {
double width = img.getWidth(null); double width = img.getWidth(null);
double height = img.getHeight(null); double height = img.getHeight(null);
...@@ -503,9 +503,9 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service. ...@@ -503,9 +503,9 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
inputStream = new ByteArrayInputStream(os.toByteArray()); inputStream = new ByteArrayInputStream(os.toByteArray());
if (value !=1&&(targetUseFor == 1 || targetUseFor == 9)){ if (value !=1&&(targetUseFor == 1 || targetUseFor == 9)){
//上传头像尺寸比例为1:1 //上传头像尺寸比例为1:1
return ZHBErrorConfig.getErrorInfo("830016"); return ZHBErrorConfig.getErrorInfo("830005");
}else if(value !=0.75 && targetUseFor == 2){ }else if(value !=0.75 && targetUseFor == 2){
return ZHBErrorConfig.getErrorInfo("830015"); return ZHBErrorConfig.getErrorInfo("830004");
} }
} }
//上传图片至阿里云 //上传图片至阿里云
......
...@@ -10,3 +10,12 @@ ...@@ -10,3 +10,12 @@
830001=该用户非寿险经纪人。 830001=该用户非寿险经纪人。
830002=只有寿险经纪人才有权限进入! 830002=只有寿险经纪人才有权限进入!
830003=请上传图片格式
830004=上传照片尺寸比例为4:3
830005=上传头像尺寸比例为1:1
830006=生活照只能有三张,请将之前的删除
830007=上传头像失败,请重新上传!
830008=上传生活照失败,请重新上传!
830009=上传微信二维码失败,请重新上传!
900003=保险公司响应报文为空!
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment