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
e1b4239e
Commit
e1b4239e
authored
Nov 30, 2021
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】首页接口提交
parent
c5764b25
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
5 deletions
+15
-5
ProductionController.java
...ffice/modules/manage/controller/ProductionController.java
+11
-5
OAuth2Filter.java
src/main/java/io/office/modules/sys/oauth2/OAuth2Filter.java
+4
-0
No files found.
src/main/java/io/office/modules/manage/controller/ProductionController.java
View file @
e1b4239e
...
@@ -4,6 +4,8 @@ import io.office.common.utils.R;
...
@@ -4,6 +4,8 @@ import io.office.common.utils.R;
import
io.office.modules.app.annotation.Login
;
import
io.office.modules.app.annotation.Login
;
import
io.office.modules.manage.vo.request.DomesticCodeDetailRequest
;
import
io.office.modules.manage.vo.request.DomesticCodeDetailRequest
;
import
io.office.modules.manage.vo.request.ProductionVo
;
import
io.office.modules.manage.vo.request.ProductionVo
;
import
io.office.modules.sys.service.SysCaptchaService
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.stereotype.Controller
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.GetMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
import
org.springframework.web.bind.annotation.PostMapping
;
...
@@ -23,15 +25,19 @@ import javax.servlet.http.HttpServletRequest;
...
@@ -23,15 +25,19 @@ import javax.servlet.http.HttpServletRequest;
@RequestMapping
(
"production/api"
)
@RequestMapping
(
"production/api"
)
public
class
ProductionController
{
public
class
ProductionController
{
@Autowired
SysCaptchaService
sysCaptchaService
;
@Login
@Login
@RequestMapping
(
"/search"
)
@PostMapping
(
"/search"
)
public
String
search
(
@RequestBody
ProductionVo
productionVo
)
{
public
R
search
(
@RequestBody
ProductionVo
productionVo
)
{
boolean
captcha
=
sysCaptchaService
.
validate
(
productionVo
.
getUuid
(),
productionVo
.
getCaptcha
());
if
(!
captcha
){
return
R
.
error
(
"验证码不正确"
);
}
return
R
.
ok
();
return
"redirect:http://search.anccnet.com/searchResult2.aspx?keyword="
+
productionVo
.
getKeyword
();
}
}
...
...
src/main/java/io/office/modules/sys/oauth2/OAuth2Filter.java
View file @
e1b4239e
...
@@ -49,6 +49,10 @@ public class OAuth2Filter extends AuthenticatingFilter {
...
@@ -49,6 +49,10 @@ public class OAuth2Filter extends AuthenticatingFilter {
return
true
;
return
true
;
}
}
if
(((
HttpServletRequest
)
request
).
getRequestURI
().
indexOf
(
"uploadFileResource"
)>-
1
)
{
return
true
;
}
return
false
;
return
false
;
}
}
...
...
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