Browse Source

fix:公众号消息demo1

wrj 10 months ago
parent
commit
f0d7833dcc

+ 1 - 1
nightFragrance-massage/src/main/java/com/ylx/massage/service/impl/TJsServiceImpl.java

@@ -146,7 +146,7 @@ public class TJsServiceImpl extends ServiceImpl<TJsMapper, TJs> implements TJsSe
         //点话
         param.set("phone_number14",JSONUtil.createObj().set("value", "18360233903"));
         param.set("thing18",JSONUtil.createObj().set("value", "李四"));
-        param.set("time6",JSONUtil.createObj().set("value", "2022年11月11日22:22"));
+        param.set("time6",JSONUtil.createObj().set("value", "2022年11月11日 22:22"));
         param.set("thing27",JSONUtil.createObj().set("value", "湖南长沙岳麓"));
         weChatUtil.notification(openId, param);
 

+ 1 - 0
nightFragrance-massage/src/main/java/com/ylx/massage/utils/WeChatUtil.java

@@ -250,6 +250,7 @@ public class WeChatUtil {
     public Map<?, ?> notification(String openid, cn.hutool.json.JSONObject data) {
 
         String token = this.getToken();
+        log.info("notification-access_token:{}", token);
 
         String url = "https://api.weixin.qq.com/cgi-bin/message/template/send?access_token=" + token;