diff --git a/lib/EmergencyBaseLib/EmergencyCommon/src/main/java/com/zdxt/common/util/IdCardCryptoUtil.java b/lib/EmergencyBaseLib/EmergencyCommon/src/main/java/com/zdxt/common/util/IdCardCryptoUtil.java index 6f897754..f18eb5ba 100644 --- a/lib/EmergencyBaseLib/EmergencyCommon/src/main/java/com/zdxt/common/util/IdCardCryptoUtil.java +++ b/lib/EmergencyBaseLib/EmergencyCommon/src/main/java/com/zdxt/common/util/IdCardCryptoUtil.java @@ -34,24 +34,25 @@ public class IdCardCryptoUtil { String userNameCode = IdCardCryptoUtil.symmetricEncryptIdCard("eWIzY3BMRVNEQXhvUUlXMA==", "汪鑫"); // String secret = IdCardCryptoUtil.symmetricEncryptIdCard("eWIzY3BMRVNEQXhvUUlXMA==", "ae739d8c-86ed-4898-b57d-eed3be42debf"); - String phone = IdCardCryptoUtil.symmetricDecryptIdCard("VRJHzFqJpsSZhwnsKTWNspv_GZMxTWl-bgH6DyE9Ty0", "3qQTst9aURL3pN5EzKtqVJnQv2Q0Ob3r+Gc9DXX/I30="); +// String phone = IdCardCryptoUtil.symmetricDecryptIdCard("VRJHzFqJpsSZhwnsKTWNspv_GZMxTWl-bgH6DyE9Ty0", "3qQTst9aURL3pN5EzKtqVJnQv2Q0Ob3r+Gc9DXX/I30="); + String phone = IdCardCryptoUtil.symmetricDecryptIdCard("VRJHzFqJpsSZhwnsKTWNspv_GZMxTWl-bgH6DyE9Ty0", "Mi4URDD0cfD4kU4WK8t+sQ=="); // System.out.println(userIdCode); -// System.out.println(phone); + System.out.println(phone); // System.out.println(userNameCode); -// System.out.println(secret); - Map heardMap = new HashMap<>(); - heardMap.put("x-auth-channel", IdUtil.simpleUUID()); - heardMap.put("x-auth-app-code","zfjdm"); - String s = IdCardCryptoUtil.httpSendPost("http://egbpub.siqhz.com/egb/api/thirdauth/pub/auth/token",userIdCode,userNameCode,"zfjdm"); - System.out.println(s); - - - String secret = IdCardCryptoUtil.symmetricEncryptIdCard("eWIzY3BMRVNEQXhvUUlXMA==", "df00fe17-dd15-4def-b1ff-8128ffe068ec"); - Map params = new HashMap<>(); - params.put("accessKeySign",secret); - params.put("appCode","zfjdm"); +//// System.out.println(secret); +// Map heardMap = new HashMap<>(); +// heardMap.put("x-auth-channel", IdUtil.simpleUUID()); +// heardMap.put("x-auth-app-code","zfjdm"); +// String s = IdCardCryptoUtil.httpSendPost("http://egbpub.siqhz.com/egb/api/thirdauth/pub/auth/token",userIdCode,userNameCode,"zfjdm"); +// System.out.println(s); +// +// +// String secret = IdCardCryptoUtil.symmetricEncryptIdCard("eWIzY3BMRVNEQXhvUUlXMA==", "df00fe17-dd15-4def-b1ff-8128ffe068ec"); +// Map params = new HashMap<>(); +// params.put("accessKeySign",secret); +// params.put("appCode","zfjdm"); // String data = HttpUtil.httpSendPost("http://egbpub.siqhz.com/egb/api/thirdauth/pub/auth/getUserInfo", // JSONObject.toJSONString(params),new HashMap<>()); // System.out.println(data); diff --git a/lib/EmergencyBaseLib/EmergencyCommon/src/main/java/com/zdxt/common/util/jasypt/JasyptUtils.java b/lib/EmergencyBaseLib/EmergencyCommon/src/main/java/com/zdxt/common/util/jasypt/JasyptUtils.java index 92bdc362..c4a1bf82 100644 --- a/lib/EmergencyBaseLib/EmergencyCommon/src/main/java/com/zdxt/common/util/jasypt/JasyptUtils.java +++ b/lib/EmergencyBaseLib/EmergencyCommon/src/main/java/com/zdxt/common/util/jasypt/JasyptUtils.java @@ -49,9 +49,9 @@ public final class JasyptUtils { return encryptor.decrypt(text); } public static void main(String[] args) { - // String s = encryptWithMD5("明文", "密钥"); - // System.out.println(s); - String channelcs1 = decryptWithMD5("szsf@zfjd", "ATPfOhpnAVp6yBas7RU"); + String s = encryptWithMD5("qYf-NIgyRKG-5eybrclvnBogATPfOhpnAVp6yBas7RU", "ATPfOhpnAVp6yBas7RU"); + System.out.println(s); + String channelcs1 = decryptWithMD5(s, "ATPfOhpnAVp6yBas7RU"); System.out.println(channelcs1); } } diff --git a/lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/framework/config/CorsFilter.java b/lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/framework/config/CorsFilter.java index 447b1431..169e2f05 100644 --- a/lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/framework/config/CorsFilter.java +++ b/lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/framework/config/CorsFilter.java @@ -60,7 +60,7 @@ public class CorsFilter implements Filter { public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException { //配置可信域名 - String[] authhosts = {"http://10.132.108.3:85","http://jdm.szssfj.cn","http://localhost:85","http://192.168.31.196:3301","http://192.168.31.196:85","http://127.0.0.1:85"}; + String[] authhosts = {"http://10.132.108.3:85","http://jdm.szssfj.cn","http://localhost:85","http://192.168.31.196:3301","http://192.168.31.196:85","http://127.0.0.1:85","http://localhost:3301"}; String authost = ""; HttpServletRequest httprequest = (HttpServletRequest) request; String origin = httprequest.getHeader("Origin"); diff --git a/lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/framework/config/ResourcesConfig.java b/lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/framework/config/ResourcesConfig.java index eea7e4db..073dcc0f 100644 --- a/lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/framework/config/ResourcesConfig.java +++ b/lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/framework/config/ResourcesConfig.java @@ -59,40 +59,16 @@ public class ResourcesConfig implements WebMvcConfigurer /** * 自定义拦截规则 */ -// @Override -// public void addInterceptors(InterceptorRegistry registry) -// { -//// registry.addInterceptor(repeatSubmitInterceptor).addPathPatterns("/**"); -// registry.addInterceptor(new JWTInterceptor()) -// .addPathPatterns("/app/**") -// .excludePathPatterns("/app/thirdLogin/siqLogin","/app/thirdLogin/siqLoginTest", -// "/app/thirdLogin/getSiqCode", -// "/common/upload", -// "/app/thirdLogin/szyptLogin/**", -// "/captcha/captchaImage/**", -// "/appLogin","/login","/index", -// "/enterpriseInformation", -// "/code/registration", -// "/code/linkage", -// "/code/ruleList", -// "/code/LawEnforcementWarningList", -// "/system/dept/**", -// "/system/user/**", -// "/system/role/**", -// "/system/post/**", -// "/system/menu/**", -// "/code/linkage/**", -// "/monitor/operlog", -// "/monitor/logininfor", -// "/system/dict", -// "/system/config", -// "/monitor/job", -// "/statistical/analysis", -// "/statistical/view", -// "/**/*.css", -// "/**/*.js", "/**/*.png", "/**/*.jpg", -// "/**/*.jpeg", "/**/*.gif", "/**/fonts/*" -// ).addPathPatterns("/**"); -//// 除了登录放行,其他接口都token验证 -// } + @Override + public void addInterceptors(InterceptorRegistry registry) + { +// registry.addInterceptor(repeatSubmitInterceptor).addPathPatterns("/**"); + registry.addInterceptor(new JWTInterceptor()) + .addPathPatterns("/app/**") + .excludePathPatterns("/app/thirdLogin/siqLogin","/app/thirdLogin/siqLoginTest", + "/app/thirdLogin/getSiqCode", + "/app/thirdLogin/szyptLogin/**" + ); +// 除了登录放行,其他接口都token验证 + } } \ No newline at end of file diff --git a/lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/framework/config/ShiroConfig.java b/lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/framework/config/ShiroConfig.java index 14923c3a..7a2d9a6c 100644 --- a/lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/framework/config/ShiroConfig.java +++ b/lib/EmergencyService/zdxtEmergencyAuthService/src/main/java/com/zdxt/auth/framework/config/ShiroConfig.java @@ -289,7 +289,8 @@ public class ShiroConfig { // 不拦截app登录 filterChainDefinitionMap.put("/appAjaxLogin", "anon"); filterChainDefinitionMap.put("/app/appLogin", "anon"); - filterChainDefinitionMap.put("/app/**", "anon"); + filterChainDefinitionMap.put("/app/thirdLogin/testLogin", "anon"); +// filterChainDefinitionMap.put("/app/**", "anon"); filterChainDefinitionMap.put("/app-z/**", "anon"); filterChainDefinitionMap.put("/Cesium-1.95/**", "anon"); // 临时放开附件, 不然浏览器玩不了 diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/static/css/stat.css b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/static/css/stat.css index 168b2dec..594e7154 100644 --- a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/static/css/stat.css +++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/static/css/stat.css @@ -39,6 +39,7 @@ body { top: 110px; right: 1%; align-items: center; + width: 67%; } .seltime > i { diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/LawEnforcementWarningList/LawEnforcementWarningList.html b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/LawEnforcementWarningList/LawEnforcementWarningList.html index fb4972ae..212d50e5 100644 --- a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/LawEnforcementWarningList/LawEnforcementWarningList.html +++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/LawEnforcementWarningList/LawEnforcementWarningList.html @@ -109,16 +109,15 @@ field : 'warningCause', title : '预警原因' }, - /*{ + { title: '操作', align: 'center', formatter: function(value, row, index) { var actions = []; - actions.push('编辑 '); - actions.push('删除'); + actions.push('详情 '); return actions.join(''); } - }*/ + } ] }; $.table.init(options); @@ -132,6 +131,11 @@ ]) return map; } + function detail(dictId) { + console.log(dictId) + var url = prefix + '/registrationDetail/' + dictId; + $.modal.openTab("字典数据", url); + } \ No newline at end of file diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/LawEnforcementWarningList/registrationDetail.html b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/LawEnforcementWarningList/registrationDetail.html new file mode 100644 index 00000000..063156af --- /dev/null +++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/LawEnforcementWarningList/registrationDetail.html @@ -0,0 +1,125 @@ + + + + + + +
+
+
+
+
+
    +
  • +

    执法部门:

    + + + +
  • +
  • +

    执法人员:

    + +
  • +
  • +

    检查时间:

    + + - + +
  • +
  • +  搜索 +  重置 +
  • +
+
+
+
+ +
+
+
+
+
+
+ + + + \ No newline at end of file diff --git a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/analysis/analysis.html b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/analysis/analysis.html index c464a8b6..3a1fc585 100644 --- a/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/analysis/analysis.html +++ b/lib/EmergencyService/zdxtEmergencyBootStart/src/main/resources/templates/project/code/analysis/analysis.html @@ -6,10 +6,10 @@