ljw 2025-11-11 16:24:00 +08:00
parent 835417024c
commit c6730de026
1 changed files with 3 additions and 3 deletions

View File

@ -105,9 +105,9 @@ public class WechatTemplateMessageServiceImpl implements WechatTemplateMessageSe
@Override
public void sendTemplateMessage(TemplateMessageParam param) {
// UserEntity userEntity = userService.getById(param.getUserId());
UserEntity userEntity = new UserEntity();
userEntity.setOpenid("owC-r2Bf1axK1C2MQ6nOaCDbKuHw");
UserEntity userEntity = userService.getById(param.getUserId());
// UserEntity userEntity = new UserEntity();
// userEntity.setOpenid("owC-r2Bf1axK1C2MQ6nOaCDbKuHw");
if (!Strings.isNullOrEmpty(userEntity.getOpenid())) {
Map<String, TemplateData> data;
if (TempType.TRANS_COMPANY.getVal().equals(param.getTempType())) {