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
70646813
Commit
70646813
authored
Sep 06, 2019
by
libin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
客服功能
parent
0ef4f21a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
3 deletions
+1
-3
CustomerServiceBiz.java
...ain/java/com/xxfc/platform/im/biz/CustomerServiceBiz.java
+1
-2
UserBiz.java
...erver/src/main/java/com/xxfc/platform/im/biz/UserBiz.java
+0
-1
No files found.
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/CustomerServiceBiz.java
View file @
70646813
...
@@ -70,13 +70,12 @@ public class CustomerServiceBiz {
...
@@ -70,13 +70,12 @@ public class CustomerServiceBiz {
CustomerService
customerService
=
new
CustomerService
();
CustomerService
customerService
=
new
CustomerService
();
BeanUtils
.
copyProperties
(
customerServiceDTO
,
customerService
);
BeanUtils
.
copyProperties
(
customerServiceDTO
,
customerService
);
customerService
.
setCreateTime
(
Instant
.
now
().
toEpochMilli
());
customerService
.
setCreateTime
(
Instant
.
now
().
toEpochMilli
());
String
password
=
new
BCryptPasswordEncoder
(
UserConstant
.
PW_ENCORDER_SALT
).
encode
(
INIT_PASSWORD
);
customerService
.
setName
(
String
.
format
(
"%s%s"
,
NICK_PRE_NAME
,
customerServiceDTO
.
getTelphone
()));
customerService
.
setName
(
String
.
format
(
"%s%s"
,
NICK_PRE_NAME
,
customerServiceDTO
.
getTelphone
()));
customerService
.
setIsDel
(
false
);
customerService
.
setIsDel
(
false
);
Map
<
String
,
Object
>
imMap
=
new
HashMap
<>(
2
);
Map
<
String
,
Object
>
imMap
=
new
HashMap
<>(
2
);
imMap
.
put
(
"telephone"
,
customerServiceDTO
.
getTelphone
());
imMap
.
put
(
"telephone"
,
customerServiceDTO
.
getTelphone
());
imMap
.
put
(
"password"
,
password
);
imMap
.
put
(
"password"
,
INIT_PASSWORD
);
imMap
.
put
(
"nickname"
,
customerService
.
getName
());
imMap
.
put
(
"nickname"
,
customerService
.
getName
());
BaseResponse
imResponse
=
userBiz
.
register
(
imMap
);
BaseResponse
imResponse
=
userBiz
.
register
(
imMap
);
String
imResult
=
imResponse
.
getMessage
();
String
imResult
=
imResponse
.
getMessage
();
...
...
xx-im/xx-im-server/src/main/java/com/xxfc/platform/im/biz/UserBiz.java
View file @
70646813
...
@@ -257,7 +257,6 @@ public class UserBiz {
...
@@ -257,7 +257,6 @@ public class UserBiz {
*/
*/
public
void
updatePasswordByPhone
(
String
telphone
,
String
password
){
public
void
updatePasswordByPhone
(
String
telphone
,
String
password
){
Query
query
=
Query
.
query
(
Criteria
.
where
(
"phone"
).
is
(
telphone
));
Query
query
=
Query
.
query
(
Criteria
.
where
(
"phone"
).
is
(
telphone
));
password
=
new
BCryptPasswordEncoder
(
UserConstant
.
PW_ENCORDER_SALT
).
encode
(
password
);
Update
update
=
Update
.
update
(
"password"
,
password
);
Update
update
=
Update
.
update
(
"password"
,
password
);
mongoTemplate
.
updateFirst
(
query
,
update
,
Map
.
class
,
"user"
);
mongoTemplate
.
updateFirst
(
query
,
update
,
Map
.
class
,
"user"
);
}
}
...
...
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