|
@@ -279,7 +279,7 @@ public class WechatMessageUtil {
|
|
* @param openId 发送人
|
|
* @param openId 发送人
|
|
* @return
|
|
* @return
|
|
*/
|
|
*/
|
|
- public static boolean sendAlarmNoticeMessage(String noticeName,String content,String openId,String noticeDetailId,String noticeTemplateId,String appId,String appSecret) {
|
|
|
|
|
|
+ public static boolean sendAlarmNoticeMessage(String noticeName,String content,Date createTime,String openId,String noticeDetailId,String noticeTemplateId,String appId,String appSecret) {
|
|
|
|
|
|
|
|
|
|
JSONObject sendData = new JSONObject();
|
|
JSONObject sendData = new JSONObject();
|
|
@@ -290,7 +290,7 @@ public class WechatMessageUtil {
|
|
first.put("color", "#173177");
|
|
first.put("color", "#173177");
|
|
|
|
|
|
JSONObject keyword1 = new JSONObject();
|
|
JSONObject keyword1 = new JSONObject();
|
|
- keyword1.put("value", sdf.format(new Date()));
|
|
|
|
|
|
+ keyword1.put("value", sdf.format(createTime));
|
|
keyword1.put("color", "#173177");
|
|
keyword1.put("color", "#173177");
|
|
|
|
|
|
|
|
|