| @@ -144,7 +144,9 @@ public class WxActivityJoinServiceImpl implements WxActivityJoinService { | |||||
| wxActivityMapper.updateByPrimaryKeySelective(activity); | wxActivityMapper.updateByPrimaryKeySelective(activity); | ||||
| //发短信 | //发短信 | ||||
| for (WxActivityJoin join : joinList) { | for (WxActivityJoin join : joinList) { | ||||
| sendMessage(join, activity); | |||||
| if (StringUtils.isNotEmpty(join.getPhone())) { | |||||
| sendMessage(join, activity); | |||||
| } | |||||
| } | } | ||||
| Map<String, Object> param = new HashMap<>(2); | Map<String, Object> param = new HashMap<>(2); | ||||
| param.put("sendMsg", EnumSendMsg.YES.getCode()); | param.put("sendMsg", EnumSendMsg.YES.getCode()); | ||||
| @@ -217,8 +219,8 @@ public class WxActivityJoinServiceImpl implements WxActivityJoinService { | |||||
| //人名 | //人名 | ||||
| String person = join.getName(); | String person = join.getName(); | ||||
| person = StringUtils.isNotEmpty(person) ? person : ""; | person = StringUtils.isNotEmpty(person) ? person : ""; | ||||
| //找出用户手机号 | |||||
| String phone = join.getPhone(); | |||||
| //找出用户手机号 联系电话为空时 使用授权手机号 | |||||
| String phone = StringUtils.isNotEmpty(join.getTelphone()) ? join.getTelphone() : join.getPhone(); | |||||
| //活动名 | //活动名 | ||||
| String party = activity.getTitle(); | String party = activity.getTitle(); | ||||
| String time = DateUtils.date2String(activity.getActivityStartTime()); | String time = DateUtils.date2String(activity.getActivityStartTime()); | ||||