Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gs1-office-web-sit
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
吴迪
gs1-office-web-sit
Commits
fa1e12e9
Commit
fa1e12e9
authored
Dec 11, 2021
by
唐功亮
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除测试接口
parent
3f25378f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
8 deletions
+17
-8
LogLoginController.java
.../office/modules/manage/controller/LogLoginController.java
+17
-8
No files found.
src/main/java/io/office/modules/manage/controller/LogLoginController.java
View file @
fa1e12e9
...
...
@@ -3,7 +3,10 @@ package io.office.modules.manage.controller;
import
java.util.Arrays
;
import
java.util.Map
;
import
cn.hutool.crypto.symmetric.DES
;
import
io.office.modules.app.annotation.Login
;
import
io.office.modules.manage.vo.request.DomesticCodeVo
;
import
io.office.modules.sys.service.SysCaptchaService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.web.bind.annotation.PathVariable
;
import
org.springframework.web.bind.annotation.RequestBody
;
...
...
@@ -16,6 +19,7 @@ import io.office.modules.manage.service.LogLoginService;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.R
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
...
...
@@ -30,16 +34,15 @@ import javax.servlet.http.HttpServletResponse;
@RestController
@RequestMapping
(
"/loglogin"
)
public
class
LogLoginController
{
@Autowired
private
LogLoginService
logLoginService
;
@RequestMapping
(
"/api/test"
)
@Login
// @RequiresPermissions("manage:member:list")
public
String
test
()
throws
Exception
{
DES
des
=
new
DES
();
return
des
.
encrypt
(
"t1476171348"
);
}
@Autowired
private
SysCaptchaService
sysCaptchaService
;
/**
* 用户登录
...
...
@@ -48,6 +51,11 @@ public class LogLoginController {
@Login
// @RequiresPermissions("manage:member:list")
public
R
login
(
@RequestBody
Map
<
String
,
Object
>
params
,
HttpServletRequest
request
,
HttpServletResponse
response
){
/*DomesticCodeVo domesticCodeVo = new DomesticCodeVo();
boolean captcha = sysCaptchaService.validate(domesticCodeVo.getUuid(), domesticCodeVo.getCaptcha());
if(!captcha){
return R.error("验证码不正确");
}*/
return
R
.
ok
().
put
(
"loginInfo"
,
logLoginService
.
login
(
params
,
request
,
response
));
}
...
...
@@ -66,7 +74,8 @@ public class LogLoginController {
/**
* 信息
*/
@RequestMapping
(
"/info/{id}"
)
@RequestMapping
(
"/api/info/{id}"
)
@Login
// @RequiresPermissions("manage:loglogin:info")
public
R
info
(
@PathVariable
(
"id"
)
Integer
id
){
LogLoginEntity
logLogin
=
logLoginService
.
getById
(
id
);
...
...
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