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
1f1cf9ae
Commit
1f1cf9ae
authored
Nov 25, 2019
by
hezhen
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master_position' into dev
parents
0c2df16b
c40d3d0b
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
AppUserRest.java
...va/com/github/wxiaoqi/security/admin/rpc/AppUserRest.java
+2
-2
AppPermissionService.java
...aoqi/security/admin/rpc/service/AppPermissionService.java
+10
-2
No files found.
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rpc/AppUserRest.java
View file @
1f1cf9ae
...
@@ -139,11 +139,11 @@ public class AppUserRest {
...
@@ -139,11 +139,11 @@ public class AppUserRest {
*/
*/
@RequestMapping
(
value
=
"/user/checkBindWechat"
)
@RequestMapping
(
value
=
"/user/checkBindWechat"
)
public
@ResponseBody
JSONObject
checkBindWechat
(
@RequestParam
(
value
=
"username"
,
defaultValue
=
""
)
String
username
,
public
@ResponseBody
JSONObject
checkBindWechat
(
@RequestParam
(
value
=
"username"
,
defaultValue
=
""
)
String
username
,
@RequestParam
(
value
=
"
isQQ"
,
defaultValue
=
"0"
)
Integer
isQQ
)
{
@RequestParam
(
value
=
"
type"
,
defaultValue
=
"0"
)
Integer
type
)
{
if
(
StringUtils
.
isBlank
(
username
))
{
if
(
StringUtils
.
isBlank
(
username
))
{
return
JsonResultUtil
.
createFailedResult
(
ResultCode
.
NULL_CODE
,
"参数为空"
);
return
JsonResultUtil
.
createFailedResult
(
ResultCode
.
NULL_CODE
,
"参数为空"
);
}
}
return
appPermissionService
.
checkBindWechat
(
username
,
isQQ
);
return
appPermissionService
.
checkBindWechat
(
username
,
type
);
}
}
...
...
ace-modules/ace-admin/src/main/java/com/github/wxiaoqi/security/admin/rpc/service/AppPermissionService.java
View file @
1f1cf9ae
...
@@ -114,6 +114,9 @@ public class AppPermissionService {
...
@@ -114,6 +114,9 @@ public class AppPermissionService {
@Autowired
@Autowired
private
AppUserPositionTempBiz
positionTempBiz
;
private
AppUserPositionTempBiz
positionTempBiz
;
@Autowired
private
AppUserAlipayBiz
alipayBiz
;
public
AppUserInfo
validate
(
String
username
,
String
password
)
{
public
AppUserInfo
validate
(
String
username
,
String
password
)
{
AppUserInfo
info
=
new
AppUserInfo
();
AppUserInfo
info
=
new
AppUserInfo
();
...
@@ -617,14 +620,19 @@ public class AppPermissionService {
...
@@ -617,14 +620,19 @@ public class AppPermissionService {
* @return
* @return
*/
*/
public
JSONObject
checkBindWechat
(
String
username
,
Integer
isQQ
)
{
public
JSONObject
checkBindWechat
(
String
username
,
Integer
type
)
{
JSONObject
data
=
new
JSONObject
();
JSONObject
data
=
new
JSONObject
();
try
{
try
{
AppUserLogin
userLogin
=
appUserLoginBiz
.
checkeUserLogin
(
username
);
AppUserLogin
userLogin
=
appUserLoginBiz
.
checkeUserLogin
(
username
);
if
(
userLogin
!=
null
)
{
if
(
userLogin
!=
null
)
{
String
openid
=
userLogin
.
getOpenid
();
String
openid
=
userLogin
.
getOpenid
();
if
(
isQQ
==
null
||
isQQ
==
0
){
if
(
type
==
null
||
type
==
0
){
openid
=
userLogin
.
getWxOpenid
();
openid
=
userLogin
.
getWxOpenid
();
}
else
if
(
type
==
2
){
List
<
AppUserAlipay
>
list
=
alipayBiz
.
getListByUserId
(
userLogin
.
getId
());
if
(
list
.
size
()>
0
){
openid
=
list
.
get
(
0
).
getTxAlipay
();
}
}
}
if
(
StringUtils
.
isNotBlank
(
openid
))
{
if
(
StringUtils
.
isNotBlank
(
openid
))
{
data
.
put
(
"type"
,
0
);
// 已存在
data
.
put
(
"type"
,
0
);
// 已存在
...
...
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