mirror of
https://codeup.aliyun.com/67c68d4e484ca2f0a13ac3c1/ydc/jsowell-charger-web.git
synced 2026-04-21 19:45:09 +08:00
新增协议0x65预约充电启动结果上传
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user