记得上下班打卡 | git大法好,push需谨慎
Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
liquidnet-bus-v1
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
董敬伟
liquidnet-bus-v1
Commits
aca658dd
Commit
aca658dd
authored
Jun 20, 2021
by
张国柄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:ID GEN;
parent
7e77d789
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
16 deletions
+10
-16
BizExceptionFeignErrorDecoder.java
...et/common/feign/config/BizExceptionFeignErrorDecoder.java
+1
-2
AdamLoginController.java
...iquidnet/service/adam/controller/AdamLoginController.java
+7
-13
errors.properties
...et-service-adam-impl/src/main/resources/errors.properties
+2
-1
No files found.
liquidnet-bus-common/liquidnet-common-feign/src/main/java/com/liquidnet/common/feign/config/BizExceptionFeignErrorDecoder.java
View file @
aca658dd
package
com
.
liquidnet
.
common
.
feign
.
config
;
package
com
.
liquidnet
.
common
.
feign
.
config
;
import
com.alibaba.fastjson.JSON
;
import
com.alibaba.fastjson.JSON
;
import
com.liquidnet.
service.constant.GlobalConstant
;
import
com.liquidnet.
common.exception.LiquidnetFeignException
;
import
com.liquidnet.common.exception.constant.ErrorCode
;
import
com.liquidnet.common.exception.constant.ErrorCode
;
import
com.liquidnet.common.exception.entity.Error
;
import
com.liquidnet.common.exception.entity.Error
;
import
com.liquidnet.common.exception.LiquidnetFeignException
;
import
feign.Response
;
import
feign.Response
;
import
feign.Util
;
import
feign.Util
;
import
org.slf4j.Logger
;
import
org.slf4j.Logger
;
...
...
liquidnet-bus-service/liquidnet-service-adam/liquidnet-service-adam-impl/src/main/java/com/liquidnet/service/adam/controller/AdamLoginController.java
View file @
aca658dd
...
@@ -79,16 +79,10 @@ public class AdamLoginController {
...
@@ -79,16 +79,10 @@ public class AdamLoginController {
@GetMapping
(
value
=
{
"gen"
})
@GetMapping
(
value
=
{
"gen"
})
public
void
genID
()
{
public
void
genID
()
{
log
.
debug
(
"0gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"-nextSnowId:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"1gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"nextMilliId:{}"
,
IDGenerator
.
nextMilliId
());
log
.
debug
(
"2gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"nextMilliId:{}"
,
IDGenerator
.
nextTimeId
());
log
.
debug
(
"3gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"nextMilliId:{}"
,
IDGenerator
.
get32UUID
());
log
.
debug
(
"4gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"5gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"6gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"7gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"8gen id:{}"
,
IDGenerator
.
nextSnowId
());
log
.
debug
(
"9gen id:{}\n"
,
IDGenerator
.
nextSnowId
());
}
}
@ApiOperationSupport
(
order
=
2
)
@ApiOperationSupport
(
order
=
2
)
...
@@ -145,7 +139,7 @@ public class AdamLoginController {
...
@@ -145,7 +139,7 @@ public class AdamLoginController {
if
(
toRegister
)
{
if
(
toRegister
)
{
userInfoVo
=
adamUserService
.
register
(
mobile
);
userInfoVo
=
adamUserService
.
register
(
mobile
);
if
(
null
==
userInfoVo
)
{
if
(
null
==
userInfoVo
)
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"1000
3
"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"1000
0
"
));
}
}
}
else
{
}
else
{
userInfoVo
=
adamRdmService
.
getUserInfoVoByUid
(
uid
);
userInfoVo
=
adamRdmService
.
getUserInfoVoByUid
(
uid
);
...
@@ -182,7 +176,7 @@ public class AdamLoginController {
...
@@ -182,7 +176,7 @@ public class AdamLoginController {
if
(
toRegister
)
{
if
(
toRegister
)
{
userInfoVo
=
adamUserService
.
register
(
mobile
);
userInfoVo
=
adamUserService
.
register
(
mobile
);
if
(
null
==
userInfoVo
)
{
if
(
null
==
userInfoVo
)
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"1000
3
"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"1000
0
"
));
}
}
}
else
{
}
else
{
userInfoVo
=
adamRdmService
.
getUserInfoVoByUid
(
uid
);
userInfoVo
=
adamRdmService
.
getUserInfoVoByUid
(
uid
);
...
@@ -227,7 +221,7 @@ public class AdamLoginController {
...
@@ -227,7 +221,7 @@ public class AdamLoginController {
}
}
AdamUserInfoVo
registerUserInfo
=
adamUserService
.
register
(
parameter
);
AdamUserInfoVo
registerUserInfo
=
adamUserService
.
register
(
parameter
);
if
(
null
==
registerUserInfo
)
{
if
(
null
==
registerUserInfo
)
{
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"1000
3
"
));
return
ResponseDto
.
failure
(
ErrorMapping
.
get
(
"1000
0
"
));
}
}
loginInfoVo
.
setUserInfo
(
registerUserInfo
);
loginInfoVo
.
setUserInfo
(
registerUserInfo
);
loginInfoVo
.
setThirdPartInfo
(
adamRdmService
.
getThirdPartVoListByUid
(
registerUserInfo
.
getUid
()));
loginInfoVo
.
setThirdPartInfo
(
adamRdmService
.
getThirdPartVoListByUid
(
registerUserInfo
.
getUid
()));
...
...
liquidnet-bus-service/liquidnet-service-adam/liquidnet-service-adam-impl/src/main/resources/errors.properties
View file @
aca658dd
...
@@ -3,9 +3,10 @@
...
@@ -3,9 +3,10 @@
40003
=
TOKEN失效
40003
=
TOKEN失效
# ------------------------ 4开头错误码作系统保留
# ------------------------ 4开头错误码作系统保留
10000
=
系统繁忙,请稍候重试
10001
=
验证码发送失败
10001
=
验证码发送失败
10002
=
验证码无效
10002
=
验证码无效
10003
=
系统繁忙,请稍候重试
10003
=
10004
=
10004
=
10005
=
手机号获取失败,请更换登录方式
10005
=
手机号获取失败,请更换登录方式
10006
=
第三方账号未注册
10006
=
第三方账号未注册
...
...
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