Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
member-api
Project
Project
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
曲欣亮
member-api
Commits
0a547320
Commit
0a547320
authored
Nov 30, 2018
by
Quxl
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x
parent
b238018b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
11 deletions
+1
-11
AdminLoginController.java
...va/com/egolm/film/api/web/admin/AdminLoginController.java
+1
-11
No files found.
src/main/java/com/egolm/film/api/web/admin/AdminLoginController.java
View file @
0a547320
package
com
.
egolm
.
film
.
api
.
web
.
admin
;
import
java.util.List
;
import
java.util.Map
;
import
javax.servlet.http.HttpServletRequest
;
import
org.springframework.beans.factory.annotation.Autowired
;
...
...
@@ -12,9 +9,7 @@ import org.springframework.web.bind.annotation.RequestMapping;
import
org.springframework.web.bind.annotation.ResponseBody
;
import
com.egolm.common.bean.Rjx
;
import
com.egolm.film.api.service.AdminAuthService
;
import
com.egolm.film.api.service.AdminTokenService
;
import
com.egolm.film.bean.Fc_admin
;
import
com.egolm.film.config.XException
;
import
com.egolm.film.model.LoginToken
;
...
...
@@ -29,9 +24,6 @@ public class AdminLoginController {
@Autowired
private
AdminTokenService
tokenService
;
@Autowired
private
AdminAuthService
authService
;
@ResponseBody
@PostMapping
(
"login"
)
@ApiOperation
(
"登陆"
)
...
...
@@ -43,9 +35,7 @@ public class AdminLoginController {
LoginToken
token
=
tokenService
.
doLogin
(
username
,
password
);
if
(
token
!=
null
)
{
tokenService
.
doLog
(
request
);
Fc_admin
admin
=
(
Fc_admin
)
tokenService
.
getTokenObj
();
List
<
Map
<
String
,
Object
>>
groupMenuList
=
authService
.
queryGroupMenuList
(
admin
.
getGroup_id
());
return
Rjx
.
jsonOk
().
setData
(
token
).
set
(
"groupMenuList"
,
groupMenuList
);
return
Rjx
.
jsonOk
().
setData
(
token
);
}
else
{
throw
new
XException
(
"用户名或密码错误"
);
}
...
...
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