From 9b2704d1954ac51320da4c8060d5aa4cf97134a6 Mon Sep 17 00:00:00 2001
From: zhouxiang <zhouxiang>
Date: 星期三, 22 二月 2023 11:23:19 +0800
Subject: [PATCH] Merge branch 'master-prod-new' of http://1.15.4.62/r/~chenjiahe/phi_platform

---
 phi_platform_user/src/main/java/com/hx/phip/interceptor/MeiJiInterceptor.java |   17 ++++++++++++-----
 1 files changed, 12 insertions(+), 5 deletions(-)

diff --git a/phi_platform_user/src/main/java/com/hx/phip/interceptor/MeiJiInterceptor.java b/phi_platform_user/src/main/java/com/hx/phip/interceptor/MeiJiInterceptor.java
index d30be3d..e6f2a0f 100644
--- a/phi_platform_user/src/main/java/com/hx/phip/interceptor/MeiJiInterceptor.java
+++ b/phi_platform_user/src/main/java/com/hx/phip/interceptor/MeiJiInterceptor.java
@@ -122,6 +122,7 @@
                 body.remove("share_url");
                 body.remove("resources");
                 body.remove("contents");
+                body.remove("view_url");
             }
 
             //楠岀
@@ -145,11 +146,17 @@
 
     }
 
-    public static void main(String args[]) throws UnsupportedEncodingException {
-        String name = "榛勫槈鑽�";
-//        name = gbEncoding(name);
-//        System.out.println(name);
-        System.out.println(unicodeToCN(name));
+    public static void main(String args[]) throws Exception {
+        String s = "{\"channel_id\":\"25853\",\"store_id\":\"007\",\"customer_id\":\"ac0adba7adab11ed91bf0c42a12ee9a2\",\"report_id\":\"25397711679918081\",\"scanner_id\":\"MEIJIXIAOFUQA001\",\"created_time\":1676969163,\"icon\":\"https:\\/\\/external-storage-1251693531.cos.ap-shanghai.myqcloud.com\\/xiaofu\\/uploads\\/2023-02-21\\/25397711679918081\\/icon.jpg\",\"view_url\":\"http:\\/\\/skin-view.myreal3d.com\\/skinPreview?scope=OPEN:basic&channel_id=25853&store_id=007&openid=ac0adba7adab11ed91bf0c42a12ee9a2&report_id=25397711679918081\",\"share_url\":\"http:\\/\\/dr2.myreal3d.com\\/skinReport?hash=EaB7sgdrZzVKVGl0&enable_history=1\",\"resources\":[{\"type\":\"zip\",\"flag\":\"obj\",\"url\":\"https:\\/\\/external-storage-1251693531.cos.ap-shanghai.myqcloud.com\\/xiaofu\\/uploads\\/2023-02-21\\/25397711679918081\\/obj.zip\"},{\"type\":\"zip\",\"flag\":\"thumb\",\"url\":\"https:\\/\\/external-storage-1251693531.cos.ap-shanghai.myqcloud.com\\/xiaofu\\/uploads\\/2023-02-21\\/25397711679918081\\/thumb.zip\"},{\"type\":\"zip\",\"flag\":\"mask\",\"url\":\"https:\\/\\/external-storage-1251693531.cos.ap-shanghai.myqcloud.com\\/xiaofu\\/uploads\\/2023-02-21\\/25397711679918081\\/mask.zip\"},{\"type\":\"jpg\",\"flag\":\"rgb_cool\",\"url\":\"https:\\/\\/external-storage-1251693531.cos.ap-shanghai.myqcloud.com\\/xiaofu\\/uploads\\/2023-02-21\\/25397711679918081\\/Rgb_Cool.jpg\"},{\"type\":\"jpg\",\"flag\":\"rgb\",\"url\":\"https:\\/\\/external-storage-1251693531.cos.ap-shanghai.myqcloud.com\\/xiaofu\\/uploads\\/2023-02-21\\/25397711679918081\\/Rgb.jpg\"},{\"type\":\"jpg\",\"flag\":\"brown_face\",\"url\":\"https:\\/\\/external-storage-1251693531.cos.ap-shanghai.myqcloud.com\\/xiaofu\\/uploads\\/2023-02-21\\/25397711679918081\\/Brown_Face.jpg\"},{\"type\":\"jpg\",\"flag\":\"red\",\"url\":\"https:\\/\\/external-storage-1251693531.cos.ap-shanghai.myqcloud.com\\/xiaofu\\/uploads\\/2023-02-21\\/25397711679918081\\/Red.jpg\"},{\"type\":\"jpg\",\"flag\":\"red2_ex_face\",\"url\":\"https:\\/\\/external-storage-1251693531.cos.ap-shanghai.myqcloud.com\\/xiaofu\\/uploads\\/2023-02-21\\/25397711679918081\\/Red2_Ex_Face.jpg\"},{\"type\":\"jpg\",\"flag\":\"red2_face\",\"url\":\"https:\\/\\/external-storage-1251693531.cos.ap-shanghai.myqcloud.com\\/xiaofu\\/uploads\\/2023-02-21\\/25397711679918081\\/Red2_Face.jpg\"},{\"type\":\"jpg\",\"flag\":\"uv\",\"url\":\"https:\\/\\/external-storage-1251693531.cos.ap-shanghai.myqcloud.com\\/xiaofu\\/uploads\\/2023-02-21\\/25397711679918081\\/Uv.jpg\"},{\"type\":\"jpg\",\"flag\":\"uv_ex_face\",\"url\":\"https:\\/\\/external-storage-1251693531.cos.ap-shanghai.myqcloud.com\\/xiaofu\\/uploads\\/2023-02-21\\/25397711679918081\\/Uv_Ex_Face.jpg\"},{\"type\":\"jpg\",\"flag\":\"plh\",\"url\":\"https:\\/\\/external-storage-1251693531.cos.ap-shanghai.myqcloud.com\\/xiaofu\\/uploads\\/2023-02-21\\/25397711679918081\\/Plh.jpg\"},{\"type\":\"jpg\",\"flag\":\"plv\",\"url\":\"https:\\/\\/external-storage-1251693531.cos.ap-shanghai.myqcloud.com\\/xiaofu\\/uploads\\/2023-02-21\\/25397711679918081\\/Plv.jpg\"},{\"type\":\"jpg\",\"flag\":\"red2_heat\",\"url\":\"https:\\/\\/external-storage-1251693531.cos.ap-shanghai.myqcloud.com\\/xiaofu\\/uploads\\/2023-02-21\\/25397711679918081\\/Red2_Heat_Face.jpg\"},{\"type\":\"jpg\",\"flag\":\"brown_heat\",\"url\":\"https:\\/\\/external-storage-1251693531.cos.ap-shanghai.myqcloud.com\\/xiaofu\\/uploads\\/2023-02-21\\/25397711679918081\\/Brown_Heat_Face.jpg\"}],\"contents\":[{\"name\":\"鎶ご绾筡",\"degree\":\"鏄庢樉\",\"level\":2,\"result\":2.61},{\"name\":\"楸煎熬绾筡",\"degree\":\"涓害\",\"level\":2,\"result\":2.41},{\"name\":\"鐪夐棿绾筡",\"degree\":\"杞诲井\",\"level\":1,\"result\":4.1},{\"name\":\"鐥ょ柈\",\"degree\":\"鈪犵骇\",\"level\":1,\"result\":4.5},{\"name\":\"姣涘瓟\",\"degree\":\"杈冪矖澶",\"level\":1,\"result\":4.12},{\"name\":\"绾㈣涓漒",\"degree\":\"閲嶅害\",\"level\":3,\"result\":1.93},{\"name\":\"榛戝ご\",\"degree\":\"鏃燶",\"level\":0,\"result\":4.75},{\"name\":\"鑲よ壊涓嶅潎\",\"degree\":\"涓害\",\"level\":2,\"result\":2.37},{\"name\":\"鐪间笅鐨辩汗\",\"degree\":\"涓害\",\"level\":2,\"result\":2.62},{\"name\":\"鑹叉枒\",\"degree\":\"涓害\",\"level\":2,\"result\":3.44},{\"name\":\"娉涚孩\",\"degree\":\"杞诲害\",\"level\":1,\"result\":3.6},{\"name\":\"T鍖哄嚭娌筡",\"degree\":\"鏃燶",\"level\":0,\"result\":4.59},{\"name\":\"U鍖哄嚭娌筡",\"degree\":\"杞诲害\",\"level\":1,\"result\":4.11}]}";
+        JSONObject body = JSONObject.parseObject(unicodeToCN(s));
+        body.remove("created_time");
+        body.remove("icon");
+        body.remove("share_url");
+        body.remove("resources");
+        body.remove("contents");
+        body.remove("view_url");
+        String sign = "Wb1ZO6v+2ej9eRfs38mUs2dD4Yu7gJJncJHnbRSTDHj5WIK2uQWTe7Berz+heEfvFL/0j8Qx5jezcJoTgoM0hecYA09hKGSDwt2QeKt9BVchcNHvFDC+Aj56bqtB+/nZFbuY8+bfUTIL4xhFxVYznoV3ygY1Ktq2UEt+OY/uAgc=";
+        verify(splicingParams(body), jgPublicKey, sign);
     }
 
 

--
Gitblit v1.8.0