Authored by bblu

修改

... ... @@ -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"));
... ...