Commit aa2809e6 by yao.xiao

修改-错误提示修改

parent fa60bcc6
......@@ -370,7 +370,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
e.printStackTrace();
}
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;
}else {
double width = img.getWidth(null);
......@@ -380,10 +380,10 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
if (value !=scaleDouble) {
if (scaleDouble == 1){
//上传头像尺寸比例为1:1
mediaGetRespVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830016")));
mediaGetRespVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830005")));
return mediaGetRespVO;
}else if(scaleDouble ==0.75) {
mediaGetRespVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830015")));
mediaGetRespVO.setCommonResult(new CommonResult(false, ZHBErrorConfig.getErrorInfo("830004")));
return mediaGetRespVO;
}
}
......@@ -415,7 +415,7 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
if (!fileUploads.isEmpty()){
int size = lifeImgUrls.size()+fileUploads.size();
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.
if (!(boolean)input.get("success")){
if (targetUseFor==1){
//地址转流失败
return ZHBErrorConfig.getErrorInfo("830056");
return ZHBErrorConfig.getErrorInfo("830007");
}else if(targetUseFor==2){
return ZHBErrorConfig.getErrorInfo("830057");
return ZHBErrorConfig.getErrorInfo("830008");
}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.
//判断图像尺寸
BufferedImage img = ImageIO.read(inputStream);
if (img == null || img.getWidth(null) <= 0 || img.getHeight(null) <= 0) {
return ZHBErrorConfig.getErrorInfo("830014");
return ZHBErrorConfig.getErrorInfo("830003");
}else {
double width = img.getWidth(null);
double height = img.getHeight(null);
......@@ -503,9 +503,9 @@ public class PractitionerServiceImpl implements com.yd.api.practitioner.service.
inputStream = new ByteArrayInputStream(os.toByteArray());
if (value !=1&&(targetUseFor == 1 || targetUseFor == 9)){
//上传头像尺寸比例为1:1
return ZHBErrorConfig.getErrorInfo("830016");
return ZHBErrorConfig.getErrorInfo("830005");
}else if(value !=0.75 && targetUseFor == 2){
return ZHBErrorConfig.getErrorInfo("830015");
return ZHBErrorConfig.getErrorInfo("830004");
}
}
//上传图片至阿里云
......
......@@ -9,4 +9,13 @@
810001=token无效或者错误!
830001=该用户非寿险经纪人。
830002=只有寿险经纪人才有权限进入!
\ No newline at end of file
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