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
e965efab
Commit
e965efab
authored
Aug 05, 2019
by
jiaorz
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/base-modify' into base-modify
parents
0894408a
769b3f9e
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
UserBiz.java
...erver/src/main/java/com/xxfc/platform/im/biz/UserBiz.java
+2
-2
No files found.
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/UserBiz.java
View file @
e965efab
...
@@ -55,7 +55,7 @@ public class UserBiz {
...
@@ -55,7 +55,7 @@ public class UserBiz {
if
(
map
.
get
(
"nickname"
)
!=
null
&&
!(
""
).
equals
(
map
.
get
(
"nickname"
))){
if
(
map
.
get
(
"nickname"
)
!=
null
&&
!(
""
).
equals
(
map
.
get
(
"nickname"
))){
str
+=
"nickname="
+
map
.
get
(
"nickname"
).
toString
();
str
+=
"nickname="
+
map
.
get
(
"nickname"
).
toString
();
}
}
String
result
=
this
.
doPost
(
imUrl
+
"/
xxfcim/
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"
)){
...
@@ -105,7 +105,7 @@ public class UserBiz {
...
@@ -105,7 +105,7 @@ public class UserBiz {
str
+=
"password="
+
map
.
get
(
"password"
).
toString
();
str
+=
"password="
+
map
.
get
(
"password"
).
toString
();
}
}
str
+=
"&areaCode=86"
;
str
+=
"&areaCode=86"
;
String
result
=
this
.
doPost
(
imUrl
+
"/
xxfcim/
user/login"
,
str
)
;
String
result
=
this
.
doPost
(
imUrl
+
"/user/login"
,
str
)
;
JSONObject
json
=
JSONObject
.
parseObject
(
result
);
JSONObject
json
=
JSONObject
.
parseObject
(
result
);
log
.
info
(
"用户登录:result = {}, telephone = {}, password = {}, userId = {}"
,
result
,
map
.
get
(
"telephone"
),
map
.
get
(
"password"
),
map
.
get
(
"userId"
));
log
.
info
(
"用户登录:result = {}, telephone = {}, password = {}, userId = {}"
,
result
,
map
.
get
(
"telephone"
),
map
.
get
(
"password"
),
map
.
get
(
"userId"
));
json
.
put
(
"password"
,
map
.
get
(
"password"
).
toString
());
json
.
put
(
"password"
,
map
.
get
(
"password"
).
toString
());
...
...
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