LAPTOP-KB9HII50\70708 3 年 前
コミット
f34fd3c827

+ 7 - 5
gateway/ag-basic/src/main/java/com/yihu/jw/gateway/filter/BasicZuulFilter.java

@ -157,14 +157,16 @@ public class BasicZuulFilter extends ZuulFilter {
            Map<String, List<String>> map = ctx.getRequestQueryParams();
            String aes_decodedStr = AesEncryptUtils.decrypt(map.get("object").toString());
            JSONObject object = JSONObject.parseObject(aes_decodedStr);
            for(String str:object.keySet()){
                List<String> arrayList = new ArrayList<>();
                String value = object.getString(str);
            if(object!=null){
                for(String str:object.keySet()){
                    List<String> arrayList = new ArrayList<>();
                    String value = object.getString(str);
              /*  if (sqlValidate(value)){
                    throw new Exception("Illegal parameter");
                }*/
                arrayList.add(value);
                map.put(str,arrayList);
                    arrayList.add(value);
                    map.put(str,arrayList);
                }
            }
            map.remove("object");
            ctx.setRequestQueryParams(map);