Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gic-platform-auth
Overview
Overview
Details
Activity
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
base_platform_enterprise
gic-platform-auth
Commits
a21bf2c1
Commit
a21bf2c1
authored
Jan 12, 2021
by
guojuxing
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
二维码扫描免登录
parent
e4c65b73
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletions
+6
-1
LoginController.java
...ain/java/com/gic/auth/web/controller/LoginController.java
+5
-0
ResourceGroupDetailVO.java
.../main/java/com/gic/auth/web/vo/ResourceGroupDetailVO.java
+1
-1
No files found.
gic-platform-auth-web/src/main/java/com/gic/auth/web/controller/LoginController.java
View file @
a21bf2c1
...
...
@@ -77,6 +77,8 @@ public class LoginController {
private
AppletsConfigApiService
appletsConfigApiService
;
@Autowired
private
ServiceConfigApiService
serviceConfigApiService
;
@Autowired
private
ResourceGroupApiService
resourceGroupApiService
;
private
static
final
String
MENU_LOCAL_CACHE_KEY
=
"auth:menu:list:all"
;
...
...
@@ -90,6 +92,7 @@ public class LoginController {
*/
@RequestMapping
(
"get-user-qrcode"
)
@HeaderSignIgnore
@IgnoreLogin
public
RestResponse
getUserQrcode
(
String
nationCode
,
String
phoneNumber
,
Integer
enterpriseId
,
String
password
)
{
if
(
StringUtils
.
isBlank
(
password
)
||
StringUtils
.
isBlank
(
phoneNumber
)
||
enterpriseId
==
null
)
{
return
EnterpriseRestResponse
.
failure
(
ErrorCode
.
PARAMETER_ERROR
);
...
...
@@ -274,6 +277,8 @@ public class LoginController {
ServiceResponse
<
UserResourceDTO
>
resource
=
this
.
userResourceApiService
.
getResourceByUserId
(
userId
);
detail
.
setUserResourceInfo
(
new
UserResourceInfo
());
if
(
resource
.
isSuccess
()
&&
resource
.
getResult
()
!=
null
)
{
//查询管理员的资源组信息
//todo 暂时保留旧代码,防止环境报错,等前端同步,删除
ServiceResponse
<
ResourceDTO
>
serviceResource
=
this
.
resourceApiService
.
getResource
(
resource
.
getResult
().
getResourceId
());
if
(
serviceResource
.
isSuccess
()
&&
serviceResource
.
getResult
()
!=
null
)
{
...
...
gic-platform-auth-web/src/main/java/com/gic/auth/web/vo/ResourceGroupDetailVO.java
View file @
a21bf2c1
...
...
@@ -27,7 +27,7 @@ public class ResourceGroupDetailVO implements Serializable{
private
Integer
customUser
;
/**
* 用户域配置,json格式 [{"type":1,"sort":1,"
cu
":"","cuSelectId":""}]
* 用户域配置,json格式 [{"type":1,"sort":1,"
areaValue
":"","cuSelectId":""}]
*/
private
String
customUserData
;
...
...
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