Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
tjmdp
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Redmine
Redmine
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
other-project
tjmdp
Commits
9b86a35c
Commit
9b86a35c
authored
Apr 26, 2019
by
liuyang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
f993e967
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
MdpController.java
src/main/java/com/qiankun/controller/mdp/MdpController.java
+9
-0
No files found.
src/main/java/com/qiankun/controller/mdp/MdpController.java
View file @
9b86a35c
...
@@ -106,7 +106,10 @@ public class MdpController {
...
@@ -106,7 +106,10 @@ public class MdpController {
//老用户
//老用户
if
(!
user
.
getName
().
equals
(
vo
.
getName
())){
if
(!
user
.
getName
().
equals
(
vo
.
getName
())){
result
.
put
(
"errorMsg"
,
"姓名与库中信息不符,请核实后重新提交"
);
result
.
put
(
"errorMsg"
,
"姓名与库中信息不符,请核实后重新提交"
);
}
else
if
(!
Strings
.
isNullOrEmpty
(
user
.
getOpenid
())){
result
.
put
(
"errorMsg"
,
"该用户已与其他微信绑定"
);
}
else
{
}
else
{
user
.
setOpenid
(
vo
.
getOpenid
());
user
.
setOpenid
(
vo
.
getOpenid
());
if
(!
Strings
.
isNullOrEmpty
(
vo
.
getPhone
())){
if
(!
Strings
.
isNullOrEmpty
(
vo
.
getPhone
())){
//更新微信绑定的手机号
//更新微信绑定的手机号
...
@@ -132,6 +135,12 @@ public class MdpController {
...
@@ -132,6 +135,12 @@ public class MdpController {
return
UserUtils
.
converToVo
(
user
);
return
UserUtils
.
converToVo
(
user
);
}
}
@Auth
(
verifyLogin
=
false
,
verifyURL
=
false
)
@Auth
(
verifyLogin
=
false
,
verifyURL
=
false
)
@RequestMapping
(
value
=
"/findUser"
,
method
=
RequestMethod
.
GET
)
public
UserVo
findUserById
(
@RequestParam
String
id
){
User
user
=
userService
.
findById
(
id
);
return
UserUtils
.
converToVo
(
user
);
}
@Auth
(
verifyLogin
=
false
,
verifyURL
=
false
)
@RequestMapping
(
value
=
"/decryptedData"
,
method
=
RequestMethod
.
POST
)
@RequestMapping
(
value
=
"/decryptedData"
,
method
=
RequestMethod
.
POST
)
public
Map
<
String
,
Object
>
decryptedData
(
@RequestBody
DecryptedDataVo
dataVo
){
public
Map
<
String
,
Object
>
decryptedData
(
@RequestBody
DecryptedDataVo
dataVo
){
Map
<
String
,
Object
>
result
=
Maps
.
newConcurrentMap
();
Map
<
String
,
Object
>
result
=
Maps
.
newConcurrentMap
();
...
...
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