Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yd-backend
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AutogeneralShanghai
yd-backend
Commits
aa2809e6
Commit
aa2809e6
authored
Apr 26, 2020
by
yao.xiao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改-错误提示修改
parent
fa60bcc6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
12 deletions
+21
-12
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
+10
-10
yd-api/src/main/resources/i18n/messages_zh_CN.properties
+11
-2
No files found.
yd-api/src/main/java/com/yd/api/practitioner/service/impl/PractitionerServiceImpl.java
View file @
aa2809e6
...
@@ -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
(
"8300
14
"
)));
mediaGetRespVO
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"8300
03
"
)));
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
(
"8300
16
"
)));
mediaGetRespVO
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"8300
05
"
)));
return
mediaGetRespVO
;
return
mediaGetRespVO
;
}
else
if
(
scaleDouble
==
0.75
)
{
}
else
if
(
scaleDouble
==
0.75
)
{
mediaGetRespVO
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"8300
15
"
)));
mediaGetRespVO
.
setCommonResult
(
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"8300
04
"
)));
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
(
"8300
19
"
));
return
new
CommonResult
(
false
,
ZHBErrorConfig
.
getErrorInfo
(
"8300
06
"
));
}
}
}
}
}
}
...
@@ -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
(
"8300
56
"
);
return
ZHBErrorConfig
.
getErrorInfo
(
"8300
07
"
);
}
else
if
(
targetUseFor
==
2
){
}
else
if
(
targetUseFor
==
2
){
return
ZHBErrorConfig
.
getErrorInfo
(
"8300
57
"
);
return
ZHBErrorConfig
.
getErrorInfo
(
"8300
08
"
);
}
else
if
(
targetUseFor
==
9
){
}
else
if
(
targetUseFor
==
9
){
return
ZHBErrorConfig
.
getErrorInfo
(
"8300
58
"
);
return
ZHBErrorConfig
.
getErrorInfo
(
"8300
09
"
);
}
}
}
}
//获取头像流
//获取头像流
...
@@ -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
(
"8300
14
"
);
return
ZHBErrorConfig
.
getErrorInfo
(
"8300
03
"
);
}
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
(
"8300
16
"
);
return
ZHBErrorConfig
.
getErrorInfo
(
"8300
05
"
);
}
else
if
(
value
!=
0.75
&&
targetUseFor
==
2
){
}
else
if
(
value
!=
0.75
&&
targetUseFor
==
2
){
return
ZHBErrorConfig
.
getErrorInfo
(
"8300
15
"
);
return
ZHBErrorConfig
.
getErrorInfo
(
"8300
04
"
);
}
}
}
}
//上传图片至阿里云
//上传图片至阿里云
...
...
yd-api/src/main/resources/i18n/messages_zh_CN.properties
View file @
aa2809e6
...
@@ -9,4 +9,13 @@
...
@@ -9,4 +9,13 @@
810001
=
token无效或者错误!
810001
=
token无效或者错误!
830001
=
该用户非寿险经纪人。
830001
=
该用户非寿险经纪人。
830002
=
只有寿险经纪人才有权限进入!
830002
=
只有寿险经纪人才有权限进入!
\ No newline at end of file
830003
=
请上传图片格式
830004
=
上传照片尺寸比例为4:3
830005
=
上传头像尺寸比例为1:1
830006
=
生活照只能有三张,请将之前的删除
830007
=
上传头像失败,请重新上传!
830008
=
上传生活照失败,请重新上传!
830009
=
上传微信二维码失败,请重新上传!
900003
=
保险公司响应报文为空!
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment