新增协议0x65预约充电启动结果上传

This commit is contained in:
Guoqs
2024-07-25 13:42:16 +08:00
parent b2aff8a25a
commit 180645ffb2
6 changed files with 86 additions and 17 deletions

View File

@@ -72,19 +72,14 @@ public class WxAppletRemoteService {
@Value("${weixin.sendMsg.stopChargingTmpId}")
private String stopChargingTmpId;
@Value("${weixin.sendMsg.startupResultTmpId}")
private String startupResultTmpId;
/**
* 获取accessToken
*
* @return
*/
public String getAccessToken() {
// String appid = Constants.APP_ID;
// String secret = Constants.APP_SECRET;
// 这里我是从配置文件中取得appid和appsecret
// appid = properties.getAppId();
// secret = properties.getAppSecret();
//查询token是否存在
String redisKey = CacheConstants.ACCESS_TOKEN + appid;
// 使用缓存先查询AccessToken是否存在
@@ -236,7 +231,6 @@ public class WxAppletRemoteService {
return uniAppSendMsg(msgInfo);
}
/**
* 停止充电发送消息
* @param dto
@@ -281,7 +275,15 @@ public class WxAppletRemoteService {
}
/**
* 小程序发送消息方法
* 预约充电结果小程序服务通知
*/
public Map<String, String> reservationStartupResultSendMsg() {
AppletTemplateMessageSendDTO msgInfo = new AppletTemplateMessageSendDTO();
return uniAppSendMsg(msgInfo);
}
/**
* 小程序发送消息方法/小程序通知/服务通知
* @param dto
* @return
*/