|
|
@@ -561,10 +561,10 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
}
|
|
|
}
|
|
|
if (cuiQiuMailService.isCuiQiuEmail(renewalView.getAccount())) {
|
|
|
- return cuiQiuMailService.getVerifyCode(renewalView.getAccount(), renewalView.getGoodsId(), type, loginReq.getLinkType());
|
|
|
+ return cuiQiuMailService.getVerifyCode(renewalView.getAccount(), renewalView.getGoodsId(), type, loginReq.getLinkType(), false);
|
|
|
}
|
|
|
//银河域名邮件
|
|
|
- String code = yhMailService.getVerifyCode(account, renewalView.getGoodsId(), type, loginReq.getLinkType());
|
|
|
+ String code = yhMailService.getVerifyCode(account, renewalView.getGoodsId(), type, loginReq.getLinkType(), false);
|
|
|
GroupsRelationLoginCodeRecord record = new GroupsRelationLoginCodeRecord();
|
|
|
record.setUserId(userId);
|
|
|
record.setRelationId(relationId);
|
|
|
@@ -923,6 +923,34 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ @Override
|
|
|
+ public String getNfHouseholdDevice(long userId, Long relationId) throws Exception {
|
|
|
+ List<Long> relationUserIdList = userBindRelationService.getRelationUserIdList(userId, null);
|
|
|
+ RenewalView renewalView = beanSearcher.searchFirst(RenewalView.class, MapUtils.builder().field(RenewalView::getUserId, relationUserIdList).op(Operator.InList)
|
|
|
+ .field(RenewalView::getRelationId, relationId).build());
|
|
|
+ if (renewalView == null) {
|
|
|
+ throw BusinessRuntimeException.getInstance("您的车票不存在...");
|
|
|
+ }
|
|
|
+ if (StrUtil.isEmpty(renewalView.getAccount())) {
|
|
|
+ throw BusinessRuntimeException.getInstance("车票未配置账号");
|
|
|
+ }
|
|
|
+ String account = renewalView.getAccount();
|
|
|
+ //收取邮件的关联邮箱
|
|
|
+ if (StrUtil.isNotEmpty(renewalView.getRelateEmail())) {
|
|
|
+ account = renewalView.getRelateEmail();
|
|
|
+ }
|
|
|
+ String password = renewalView.getPassword();
|
|
|
+ if (StrUtil.hasEmpty(account, password)) {
|
|
|
+ throw BusinessRuntimeException.getInstance("您的车票账号密码异常,请联系客服...");
|
|
|
+ }
|
|
|
+
|
|
|
+ if (cuiQiuMailService.isCuiQiuEmail(renewalView.getAccount())) {
|
|
|
+ return cuiQiuMailService.getVerifyCode(renewalView.getAccount(), renewalView.getGoodsId(), null, 1, true);
|
|
|
+ }
|
|
|
+ //银河域名邮件
|
|
|
+ return yhMailService.getVerifyCode(account, renewalView.getGoodsId(), null, 1, true);
|
|
|
+ }
|
|
|
+
|
|
|
private DistributePosterGoodsDetailView setGoodsPoster(RenewalView ticket, User user, List<Long> userIds) {
|
|
|
DistributePosterGoodsDetailView distributePosterGoodsDetailView = beanSearcher.searchFirst(DistributePosterGoodsDetailView.class, MapUtils.flatBuilder(request.getParameterMap())
|
|
|
.field(DistributePosterGoodsFrontView::getGoodsId, ticket.getGoodsId()).build());
|