Parcourir la source

修改推送消息

raojiaolong@163.com il y a 2 ans
Parent
commit
2689ff7d4a

+ 1 - 1
mhotel/src/com/happy/action/bookAction.java

@@ -162,7 +162,7 @@ public class bookAction extends ActionSupport implements ServletRequestAware {
             if (m > 0) {
                 //推送信息
                 if(!"".equals(sendMsg)){
-                    String liveTime = book.getLiveTime()!=null ? book.getLiveTime().substring(0,10):"";
+                    String liveTime = book.getOrderStartTime()!=null ? book.getOrderStartTime().substring(0,10):"";
                     String endTime = book.getCheckOutTime()!=null ? book.getCheckOutTime().substring(0,10):"";
                     String errmsg = Message.wxErrorMsg(Message.send(user.getOpenid(),book.getHotelName(),book.getOrderStatus(),liveTime,endTime,book.getHouseName()));
                     if("请求成功".equals(errmsg)){

+ 5 - 2
mhotel/src/com/happy/common/http/Message.java

@@ -58,7 +58,7 @@ public class Message {
         JSONObject thing27 = new JSONObject();
         thing27.put("value", dom_name);
         // 酒店名称
-        data.put("string1",string1);
+        data.put("thing1",string1);
         // 订单状态
         data.put("phrase2",phrase2);
         // 入住日期
@@ -541,5 +541,8 @@ public class Message {
     }
 
 
-
+    public static void main(String[] args) throws Exception {
+        System.out.println(send("ou2uV5NKrqs6WUvwgg5RNbMILjQU","测试","测试",
+                "2023-08-25","2023-08-26","cesss"));
+    }
 }