Toggle navigation
Toggle navigation
This project
Loading...
Sign in
ops
/
monitor-ui
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
bblu
8 years ago
Commit
757f9a23c7d351ffaccb37ea3af65a4a49eb8dab
1 parent
0f56ec46
修改
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
14 deletions
monitor-ui-ctrl/src/main/java/com/ui/ctrl/LimitSwitchCtrl.java
monitor-ui-ctrl/src/main/java/com/ui/ctrl/LimitSwitchCtrl.java
View file @
757f9a2
...
...
@@ -38,20 +38,9 @@ public class LimitSwitchCtrl {
*/
@RequestMapping
(
value
=
"toLimitSwitch"
)
public
ModelAndView
viewNginxConf
()
{
// BaseResponse<Map<String, Object>> response = httpRestClient.exchangeForget(HttpUriContants.VIEW_LIMIT_CONF, new ParameterizedTypeReference<BaseResponse<Map<String, Object>>>() {
// }, null);
// Map<String, Object> data = response.getData();
List
<
String
>
limitConfigList
=
new
ArrayList
<>();
limitConfigList
.
add
(
"[\"app.promotion.getCoupon\"]={2000,9999992}"
);
limitConfigList
.
add
(
"[\"h5.product.data\"]={2000,9999992}"
);
limitConfigList
.
add
(
"[\"app.product.data\"]={2000,9999992}"
);
List
<
String
>
limitServiceConfigList
=
new
ArrayList
<>();
limitServiceConfigList
.
add
(
"[\"/operations/api/v5/resource/get\"]={2000,9999992}"
);
Map
<
String
,
Object
>
data
=
new
HashMap
<>();
data
.
put
(
"open_limit_flow"
,
true
);
data
.
put
(
"limit_config"
,
limitConfigList
);
data
.
put
(
"limit_service_config"
,
limitServiceConfigList
);
BaseResponse
<
Map
<
String
,
Object
>>
response
=
httpRestClient
.
exchangeForget
(
HttpUriContants
.
VIEW_LIMIT_CONF
,
new
ParameterizedTypeReference
<
BaseResponse
<
Map
<
String
,
Object
>>>()
{
},
null
);
Map
<
String
,
Object
>
data
=
response
.
getData
();
ModelAndView
mdv
=
new
ModelAndView
(
"switch/limitSwitch"
);
mdv
.
addObject
(
"open_limit_flow"
,
data
.
get
(
"open_limit_flow"
));
...
...
Please
register
or
login
to post a comment