From 10df7e29b51d6a2efacc83d870856f57d97a9b66 Mon Sep 17 00:00:00 2001
From: yanghui <2536613402@qq.com>
Date: 星期一, 24 十月 2022 13:48:24 +0800
Subject: [PATCH] #feat 修改别名

---
 springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/WxCallbackApi.java |   29 ++++++++++++++++++++++++-----
 1 files changed, 24 insertions(+), 5 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/WxCallbackApi.java b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/WxCallbackApi.java
index 02fcf80..edb9839 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/WxCallbackApi.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/applets/src/main/java/com/panzhihua/applets/api/WxCallbackApi.java
@@ -21,9 +21,8 @@
 import io.swagger.annotations.ApiOperation;
 import com.panzhihua.common.service.community.ComBatteryCommodityOrderFeign;
 import org.json.XML;
-import org.springframework.web.bind.annotation.PostMapping;
-import org.springframework.web.bind.annotation.RequestMapping;
-import org.springframework.web.bind.annotation.RestController;
+import org.springframework.beans.factory.annotation.Value;
+import org.springframework.web.bind.annotation.*;
 
 import com.alibaba.fastjson.JSON;
 import com.alibaba.fastjson.JSONObject;
@@ -61,7 +60,7 @@
 
     @PostMapping("wxNotify")
     public void payCallback(HttpServletRequest request, HttpServletResponse response) {
-        log.info("微信支付回调start");
+        log.error("微信支付回调start");
         String inputLine = "";
         String notityXml = "";
         try {
@@ -70,7 +69,7 @@
             }
             // 关闭流
             request.getReader().close();
-            log.info("微信回调内容信息:" + notityXml);
+            log.error("微信回调内容信息:" + notityXml);
             // 解析成Json
             org.json.JSONObject xmlJson = XML.toJSONObject(notityXml);
             if (StringUtils.isNotEmpty(xmlJson.toString())) {
@@ -187,6 +186,21 @@
             String desString=MyAESUtil.Decrypt(aesMap.get("aesString"),"Ryo7M3n8loC5Abcd");
             Map<String,String> desMap= (Map) JSON.parse(desString);
             return userService.uuPush(desMap.get("washer_mobile"),desMap.get("phone"),desMap.get("washer_name"),Integer.parseInt(desMap.get("order_status")));
+
+        } catch (Exception e) {
+            e.printStackTrace();
+            return R.fail("推送失败");
+        }
+
+    }
+    @ApiOperation("ws洗车推送")
+    @PostMapping("/wsPush")
+    public R wsPush(@RequestBody String aesString){
+        try {
+            Map<String, String> aesMap= (Map<String, String>) JSON.parse(aesString);
+            String desString=MyAESUtil.Decrypt(aesMap.get("aesString"),"Ryo7M3n8loC5Abcd");
+            Map<String,String> desMap= (Map) JSON.parse(desString);
+            return userService.wsPush(desMap.get("washer_mobile"),desMap.get("phone"),desMap.get("washer_name"),Integer.parseInt(desMap.get("order_status")));
         } catch (Exception e) {
             e.printStackTrace();
             return R.fail("推送失败");
@@ -329,4 +343,9 @@
         buffer.append("</xml>");
         return buffer.toString();
     }
+
+    @GetMapping("/settle")
+    public R settle(String settleDate){
+        return R.ok(umfPayUtil.settle(settleDate));
+    }
 }

--
Gitblit v1.7.1