|
@@ -951,6 +951,31 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
return yhMailService.getVerifyCode(account, renewalView.getGoodsId(), null, 1, true);
|
|
return yhMailService.getVerifyCode(account, renewalView.getGoodsId(), null, 1, true);
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ @Override
|
|
|
|
|
+ public String getVerifyCode(String account) throws Exception {
|
|
|
|
|
+ Account at = accountMapper.selectOne(Wrappers.lambdaQuery(Account.class)
|
|
|
|
|
+ .eq(Account::getAccount, account)
|
|
|
|
|
+ .eq(Account::getGoodsId, 18));
|
|
|
|
|
+ if (at == null) {
|
|
|
|
|
+ return null;
|
|
|
|
|
+ }
|
|
|
|
|
+ String password = at.getPassword();
|
|
|
|
|
+ if (StrUtil.isNotEmpty(at.getRelateEmail())) {
|
|
|
|
|
+ account = at.getRelateEmail();
|
|
|
|
|
+ }
|
|
|
|
|
+ if (StrUtil.hasEmpty(account, password)) {
|
|
|
|
|
+ throw BusinessRuntimeException.getInstance("账号异常");
|
|
|
|
|
+ }
|
|
|
|
|
+ if (StrUtil.isNotEmpty(at.getRelateEmail())) {
|
|
|
|
|
+ account = at.getRelateEmail();
|
|
|
|
|
+ }
|
|
|
|
|
+ if (cuiQiuMailService.isCuiQiuEmail(account)) {
|
|
|
|
|
+ return cuiQiuMailService.getVerifyCode(account, at.getGoodsId(), null, null, false);
|
|
|
|
|
+ }
|
|
|
|
|
+ String code = yhMailService.getVerifyCode(account, at.getGoodsId(), null, null, false);
|
|
|
|
|
+ return code;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
private DistributePosterGoodsDetailView setGoodsPoster(RenewalView ticket, User user, List<Long> userIds) {
|
|
private DistributePosterGoodsDetailView setGoodsPoster(RenewalView ticket, User user, List<Long> userIds) {
|
|
|
DistributePosterGoodsDetailView distributePosterGoodsDetailView = beanSearcher.searchFirst(DistributePosterGoodsDetailView.class, MapUtils.flatBuilder(request.getParameterMap())
|
|
DistributePosterGoodsDetailView distributePosterGoodsDetailView = beanSearcher.searchFirst(DistributePosterGoodsDetailView.class, MapUtils.flatBuilder(request.getParameterMap())
|
|
|
.field(DistributePosterGoodsFrontView::getGoodsId, ticket.getGoodsId()).build());
|
|
.field(DistributePosterGoodsFrontView::getGoodsId, ticket.getGoodsId()).build());
|