|
|
@@ -73,17 +73,17 @@ public class GoodsSubscribeAlertServiceImpl implements GoodsSubscribeAlertServic
|
|
|
|
|
|
Long userId = userSubscribeAlertGoodsRecord.getUserId();
|
|
|
User user = userMapper.selectById(userId);
|
|
|
- //微信用户
|
|
|
- if (StrUtil.isNotBlank(user.getUnionid())) {
|
|
|
- //发送微信通知模板
|
|
|
- Boolean success = templateCommonService.sendUserSubscribeAlertMsg(user, String.format(Constant.GOODS_SUBSCRIBE_ALERT_WX_MSG, goodsDon.getTitle()), goodsId);
|
|
|
- if (!success) {
|
|
|
- //失败后发送手机
|
|
|
- sendPhoneNotifySubscribe(goodsDon.getTitle(), goodsId, userId);
|
|
|
- }
|
|
|
- continue;
|
|
|
- }
|
|
|
- //手机用户 或邮箱用户 首先用发手机号
|
|
|
+// //微信用户
|
|
|
+// if (StrUtil.isNotBlank(user.getUnionid())) {
|
|
|
+// //发送微信通知模板
|
|
|
+// Boolean success = templateCommonService.sendUserSubscribeAlertMsg(user, String.format(Constant.GOODS_SUBSCRIBE_ALERT_WX_MSG, goodsDon.getTitle()), goodsId);
|
|
|
+// if (!success) {
|
|
|
+// //失败后发送手机
|
|
|
+// sendPhoneNotifySubscribe(goodsDon.getTitle(), goodsId, userId);
|
|
|
+// }
|
|
|
+// continue;
|
|
|
+// }
|
|
|
+ //首先用发手机号
|
|
|
Boolean success = sendPhoneNotifySubscribe(goodsDon.getTitle(), goodsId, userId);
|
|
|
if (!success) {
|
|
|
//失败 并且是邮箱用户
|
|
|
@@ -125,17 +125,17 @@ public class GoodsSubscribeAlertServiceImpl implements GoodsSubscribeAlertServic
|
|
|
|
|
|
Long userId = userSubscribeAlertGoodsRecord.getUserId();
|
|
|
User user = userMapper.selectById(userId);
|
|
|
- //微信用户
|
|
|
- if (StrUtil.isNotBlank(user.getUnionid())) {
|
|
|
- //发送微信通知模板
|
|
|
- Boolean success = templateCommonService.sendUserSubscribeAlertMsg(user, String.format(Constant.GOODS_SUBSCRIBE_ALERT_WX_MSG, title), goodsDon.getId());
|
|
|
- if (!success) {
|
|
|
- //未成功 查看其他绑定信息
|
|
|
- sendPhoneNotifySubscribe(title, goodsDon.getId(), userId);
|
|
|
- }
|
|
|
- continue;
|
|
|
- }
|
|
|
- //手机用户 或邮箱用户 首先用发手机号
|
|
|
+// //微信用户
|
|
|
+// if (StrUtil.isNotBlank(user.getUnionid())) {
|
|
|
+// //发送微信通知模板
|
|
|
+// Boolean success = templateCommonService.sendUserSubscribeAlertMsg(user, String.format(Constant.GOODS_SUBSCRIBE_ALERT_WX_MSG, title), goodsDon.getId());
|
|
|
+// if (!success) {
|
|
|
+// //未成功 查看其他绑定信息
|
|
|
+// sendPhoneNotifySubscribe(title, goodsDon.getId(), userId);
|
|
|
+// }
|
|
|
+// continue;
|
|
|
+// }
|
|
|
+ //首先用发手机号
|
|
|
Boolean success = sendPhoneNotifySubscribe(title, goodsDon.getId(), userId);
|
|
|
if (!success) {
|
|
|
//失败 并且是邮箱用户
|