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
264befaa
Commit
264befaa
authored
Dec 13, 2023
by
吴迪
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
【新增】请求gds接口限制
parent
f65970d9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
TycpdmFirmServiceImpl.java
...ce/modules/manage/service/impl/TycpdmFirmServiceImpl.java
+13
-0
No files found.
src/main/java/io/office/modules/manage/service/impl/TycpdmFirmServiceImpl.java
View file @
264befaa
...
@@ -11,6 +11,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
...
@@ -11,6 +11,7 @@ import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import
io.office.common.exception.RRException
;
import
io.office.common.exception.RRException
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.PageUtils
;
import
io.office.common.utils.Query
;
import
io.office.common.utils.Query
;
import
io.office.common.utils.RedisUtils
;
import
io.office.modules.manage.dao.*
;
import
io.office.modules.manage.dao.*
;
import
io.office.modules.manage.entity.*
;
import
io.office.modules.manage.entity.*
;
import
io.office.modules.manage.service.TycpdmFirmChangeService
;
import
io.office.modules.manage.service.TycpdmFirmChangeService
;
...
@@ -27,6 +28,7 @@ import org.springframework.transaction.annotation.Transactional;
...
@@ -27,6 +28,7 @@ import org.springframework.transaction.annotation.Transactional;
import
org.springframework.util.FileCopyUtils
;
import
org.springframework.util.FileCopyUtils
;
import
org.springframework.web.multipart.MultipartFile
;
import
org.springframework.web.multipart.MultipartFile
;
import
javax.annotation.Resource
;
import
javax.servlet.http.HttpServletResponse
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.File
;
import
java.io.File
;
import
java.io.FileInputStream
;
import
java.io.FileInputStream
;
...
@@ -67,6 +69,11 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
...
@@ -67,6 +69,11 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
@Value
(
"${uploadFileQYOne}"
)
@Value
(
"${uploadFileQYOne}"
)
String
uploadFileQYOne
;
String
uploadFileQYOne
;
@Resource
RedisUtils
redisUtils
;
@Override
@Override
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
public
PageUtils
queryPage
(
Map
<
String
,
Object
>
params
)
{
...
@@ -724,6 +731,12 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
...
@@ -724,6 +731,12 @@ public class TycpdmFirmServiceImpl extends ServiceImpl<TycpdmFirmDao, TycpdmFirm
if
(!
"200"
.
equals
(
status
))
{
if
(!
"200"
.
equals
(
status
))
{
throw
new
RRException
(
"获取token失败"
+
msg
);
throw
new
RRException
(
"获取token失败"
+
msg
);
}
}
String
value
=
redisUtils
.
get
(
"gds:"
+
phone
);
if
(
StringUtils
.
isNotBlank
(
value
))
{
throw
new
RRException
(
"请求频繁,请3s后重试!"
);
}
redisUtils
.
set
(
"gds:"
+
phone
,
"Y"
,
3
);
log
.
info
(
"http://wsdt.gs1cn.org/anccoh/login?method=redirect&token="
+
msg
);
log
.
info
(
"http://wsdt.gs1cn.org/anccoh/login?method=redirect&token="
+
msg
);
return
"http://wsdt.gs1cn.org/anccoh/login?method=redirect&token="
+
msg
;
return
"http://wsdt.gs1cn.org/anccoh/login?method=redirect&token="
+
msg
;
}
}
...
...
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