Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
张云鹏
/
uc-engine
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
df8b22d5
...
df8b22d5223c01e3af3a6fe496ee3894743db79f
authored
2022-03-21 01:09:11 +0800
by
xianghan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1.优化
1 parent
07a5bc8c
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
member-service-impl/src/main/java/com/topdraw/business/process/service/impl/UserOperationServiceImpl.java
member-service-impl/src/main/java/com/topdraw/exception/GlobeExceptionMsg.java
member-service-impl/src/main/java/com/topdraw/business/process/service/impl/UserOperationServiceImpl.java
View file @
df8b22d
...
...
@@ -575,6 +575,7 @@ public class UserOperationServiceImpl implements UserOperationService {
log
.
error
(
"appletBind ==> platformAccount ==> [{}]"
,
platformAccount
);
throw
new
EntityNotFoundException
(
UserTvDTO
.
class
,
"id"
,
GlobeExceptionMsg
.
IPTV_IS_NULL
);
}
resources
.
setPlatformUserId
(
userTvDTO
.
getId
());
UserWeixinDTO
userWeixinDTO
=
null
;
// 微信账户
...
...
@@ -598,6 +599,11 @@ public class UserOperationServiceImpl implements UserOperationService {
}
MemberDTO
memberDTO
=
this
.
findMemberById
(
memberId
);
Long
userIptvId
=
memberDTO
.
getUserIptvId
();
if
(
Objects
.
nonNull
(
userIptvId
))
throw
new
BadRequestException
(
GlobeExceptionMsg
.
ALREADY_BIND
);
// 主账户会员
String
code
=
memberDTO
.
getCode
();
...
...
member-service-impl/src/main/java/com/topdraw/exception/GlobeExceptionMsg.java
View file @
df8b22d
...
...
@@ -46,4 +46,5 @@ public interface GlobeExceptionMsg {
String
APP_ID_IS_NULL
=
"appId is null"
;
String
OPEN_ID_IS_NULL
=
"openId is null"
;
String
UNION_ID_IS_NULL
=
"unionId is null"
;
String
ALREADY_BIND
=
"already bind"
;
}
...
...
Please
register
or
sign in
to post a comment