Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cloud-platform
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
youjj
cloud-platform
Commits
5bd3e37d
Commit
5bd3e37d
authored
Nov 18, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_position' into dev
parents
3a272edc
baad7456
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
1 deletion
+4
-1
AppPermissionService.java
...aoqi/security/admin/rpc/service/AppPermissionService.java
+3
-0
UserBiz.java
...erver/src/main/java/com/xxfc/platform/im/biz/UserBiz.java
+1
-1
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rpc/service/AppPermissionService.java
View file @
5bd3e37d
...
@@ -309,6 +309,9 @@ public class AppPermissionService {
...
@@ -309,6 +309,9 @@ public class AppPermissionService {
activityCode
=
codes
[
1
];
activityCode
=
codes
[
1
];
}
}
parentId
=
appUserDetailBiz
.
getUserByCode
(
code
);
parentId
=
appUserDetailBiz
.
getUserByCode
(
code
);
if
(
parentId
==
null
||
parentId
==
0
){
return
JsonResultUtil
.
createFailedResult
(
ResultCode
.
NOTEXIST_CODE
,
"邀请人不存在"
);
}
}
}
if
(
parentId
!=
null
&&
parentId
>
0
){
if
(
parentId
!=
null
&&
parentId
>
0
){
relationBiz
.
bindRelation
(
userid
,
parentId
,
1
);
relationBiz
.
bindRelation
(
userid
,
parentId
,
1
);
...
...
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/UserBiz.java
View file @
5bd3e37d
...
@@ -68,7 +68,7 @@ public class UserBiz {
...
@@ -68,7 +68,7 @@ public class UserBiz {
String
result
=
this
.
doPost
(
imUrl
+
"/user/register"
,
str
)
;
String
result
=
this
.
doPost
(
imUrl
+
"/user/register"
,
str
)
;
JSONObject
json
=
JSONObject
.
parseObject
(
result
);
JSONObject
json
=
JSONObject
.
parseObject
(
result
);
//如果已经注册过,查询出手机号对应用户信息执行登录返回
//如果已经注册过,查询出手机号对应用户信息执行登录返回
if
(
0
==
json
.
getInteger
(
"resultCode"
)){
if
(
0
==
json
.
getInteger
(
"resultCode"
)
||
1040107
==
json
.
getInteger
(
"resultCode"
)
){
String
phone
=
map
.
get
(
"telephone"
).
toString
();
String
phone
=
map
.
get
(
"telephone"
).
toString
();
Query
query
=
new
Query
(
Criteria
.
where
(
"phone"
).
is
(
phone
));
Query
query
=
new
Query
(
Criteria
.
where
(
"phone"
).
is
(
phone
));
User
mgt
=
mongoTemplate
.
findOne
(
query
,
User
.
class
);
User
mgt
=
mongoTemplate
.
findOne
(
query
,
User
.
class
);
...
...
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