From 43f0578e80af82ecae6c61b51bd0539c6b960603 Mon Sep 17 00:00:00 2001
From: puhanshu <a9236326>
Date: 星期二, 16 八月 2022 19:08:32 +0800
Subject: [PATCH] 服务范围优化

---
 springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/WxUtil.java |  105 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 104 insertions(+), 1 deletions(-)

diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/WxUtil.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/WxUtil.java
index e025609..e67005d 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/WxUtil.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/utlis/WxUtil.java
@@ -455,13 +455,116 @@
             log.error("危险人员订阅消息推送失败,失败原因:" + e.getMessage());
         }
     }
+
+    /**
+     * uu洗车订单状态更改
+     * @param openId
+     * @param accessToken
+     * @param status
+     * @param washerName
+     * @param washerMobile
+     * @param phone
+     * @param templateId
+     */
+    public static void sendUuWash(String openId, String accessToken, String status,String washerName,String washerMobile,String phone,String templateId){
+        WxSubscribeDTO subscribeDTO = new WxSubscribeDTO();
+        subscribeDTO.setTouser(openId);
+        subscribeDTO.setTemplate_id(templateId);
+        subscribeDTO.setPage("packageD/pages/washer/order/index");
+        List<TemplateParam> paras=new ArrayList<TemplateParam>();
+        paras.add(new TemplateParam("thing1", "上门洗车"));
+        paras.add(new TemplateParam("thing4", phone));
+        subscribeDTO.setTemplateParamList(paras);
+        try {
+            sendSubscribe(accessToken,subscribeDTO);
+        }catch (Exception e){
+            log.error(e.getMessage());
+        }
+    }
+    /**
+     * uu洗车订单状态更改
+     * @param openId
+     * @param accessToken
+     * @param status
+     * @param washerName
+     * @param washerMobile
+     * @param phone
+     * @param templateId
+     */
+    public static void sendUuWash3(String openId, String accessToken, String status,String washerName,String washerMobile,String phone,String templateId){
+        WxSubscribeDTO subscribeDTO = new WxSubscribeDTO();
+        subscribeDTO.setTouser(openId);
+        subscribeDTO.setTemplate_id(templateId);
+        subscribeDTO.setPage("packageD/pages/washer/order/index");
+        List<TemplateParam> paras=new ArrayList<TemplateParam>();
+        paras.add(new TemplateParam("thing9", washerName));
+        paras.add(new TemplateParam("phone_number10",washerMobile));
+        subscribeDTO.setTemplateParamList(paras);
+        try {
+            sendSubscribe(accessToken,subscribeDTO);
+        }catch (Exception e){
+            log.error(e.getMessage());
+        }
+    }
+    /**
+     * uu洗车订单状态更改
+     * @param openId
+     * @param accessToken
+     * @param status
+     * @param washerName
+     * @param washerMobile
+     * @param phone
+     * @param templateId
+     */
+    public static void sendUuWash4(String openId, String accessToken, String status,String washerName,String washerMobile,String phone,String templateId){
+        WxSubscribeDTO subscribeDTO = new WxSubscribeDTO();
+        subscribeDTO.setTouser(openId);
+        subscribeDTO.setTemplate_id(templateId);
+        subscribeDTO.setPage("packageD/pages/washer/order/index");
+        List<TemplateParam> paras=new ArrayList<TemplateParam>();
+        paras.add(new TemplateParam("thing4", status));
+        paras.add(new TemplateParam("thing3", washerName));
+        paras.add(new TemplateParam("thing6",washerMobile));
+        subscribeDTO.setTemplateParamList(paras);
+        try {
+            sendSubscribe(accessToken,subscribeDTO);
+        }catch (Exception e){
+            log.error(e.getMessage());
+        }
+    }
+    /**
+     * uu洗车订单状态更改
+     * @param openId
+     * @param accessToken
+     * @param status
+     * @param washerName
+     * @param washerMobile
+     * @param phone
+     * @param templateId
+     */
+    public static void sendUuWash6(String openId, String accessToken, String status,String washerName,String washerMobile,String phone,String templateId){
+        WxSubscribeDTO subscribeDTO = new WxSubscribeDTO();
+        subscribeDTO.setTouser(openId);
+        subscribeDTO.setTemplate_id(templateId);
+        subscribeDTO.setPage("packageD/pages/washer/order/index");
+        List<TemplateParam> paras=new ArrayList<TemplateParam>();
+        paras.add(new TemplateParam("phrase14", status));
+        paras.add(new TemplateParam("name3", washerName));
+        paras.add(new TemplateParam("thing5",washerMobile));
+        subscribeDTO.setTemplateParamList(paras);
+        try {
+            sendSubscribe(accessToken,subscribeDTO);
+        }catch (Exception e){
+            log.error(e.getMessage());
+        }
+    }
     public static void main(String[] args) {
 
         WxXCXTempSend util = new WxXCXTempSend();
         try {
             // String openId = "oMIR-5S9rpsWAVUUrNKoVDQbn5Mw";//zj的openid
             String openId = "oMIR-5dWyNyWCCKMl7-kYzvyHOjs";// lyq的openid
-            String accessToken = util.getAppAccessToken();
+            String accessToken = util.getAccessToken();
             // sendSubscribeHDJJKS(openId,accessToken,"测试活动即将开始标题","2021-08-04 13:00:00","成都市","50");//活动即将开始
             // sendSubscribeHDQX(openId,accessToken,"取消活动测试标题","2021-08-04 13:00:00");//活动取消
             // sendSubscribeHDBG(openId,accessToken,"活动名称","2021-08-05","活动变更地址","2021-08-06","活动地址");//活动变更

--
Gitblit v1.7.1