update vin启动充电发送订阅消息

This commit is contained in:
Lemon
2023-06-13 14:57:06 +08:00
parent 59954fa77b
commit d0be6ad54e
2 changed files with 38 additions and 6 deletions

View File

@@ -185,8 +185,13 @@ public class WxAppletRemoteService {
* @return
*/
public Map<String, String> startChargingSendMsg(WechatSendMsgDTO dto) {
// 通过code查询openId并set
String openId = getOpenIdByCode(dto.getCode());
String openId = "";
if (StringUtils.isNotBlank(dto.getOpenId())) {
openId = dto.getOpenId();
}else {
// 通过code查询openId并set
openId = getOpenIdByCode(dto.getCode());
}
if (StringUtils.isBlank(openId)) {
return null;
}