|
@@ -36,10 +36,7 @@ import com.cyksj.service.chatgpt.ChatGptAuthService;
|
|
|
import com.cyksj.service.claude.ClaudeService;
|
|
import com.cyksj.service.claude.ClaudeService;
|
|
|
import com.cyksj.service.groups.GroupsFuncService;
|
|
import com.cyksj.service.groups.GroupsFuncService;
|
|
|
import com.cyksj.service.luma.LumaService;
|
|
import com.cyksj.service.luma.LumaService;
|
|
|
-import com.cyksj.service.mail.CuiQiuMailService;
|
|
|
|
|
-import com.cyksj.service.mail.MailLuService;
|
|
|
|
|
-import com.cyksj.service.mail.MailService;
|
|
|
|
|
-import com.cyksj.service.mail.YhMailService;
|
|
|
|
|
|
|
+import com.cyksj.service.mail.*;
|
|
|
import com.cyksj.service.mange.coupon.CouponCommonService;
|
|
import com.cyksj.service.mange.coupon.CouponCommonService;
|
|
|
import com.cyksj.service.midjourney.MidjourneyAccountService;
|
|
import com.cyksj.service.midjourney.MidjourneyAccountService;
|
|
|
import com.cyksj.service.relation.GroupRelationFrontService;
|
|
import com.cyksj.service.relation.GroupRelationFrontService;
|
|
@@ -123,10 +120,6 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
|
|
|
|
|
private final UserLoginRecordService userLoginRecordService;
|
|
private final UserLoginRecordService userLoginRecordService;
|
|
|
|
|
|
|
|
- private final CuiQiuMailService cuiQiuMailService;
|
|
|
|
|
-
|
|
|
|
|
- private final MailLuService mailLuService;
|
|
|
|
|
-
|
|
|
|
|
private final UserCertRecordMapper userCertRecordMapper;
|
|
private final UserCertRecordMapper userCertRecordMapper;
|
|
|
|
|
|
|
|
private final MidjourneyAccountService midjourneyAccountService;
|
|
private final MidjourneyAccountService midjourneyAccountService;
|
|
@@ -153,8 +146,6 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
|
|
|
|
|
private final ClaudeService claudeService;
|
|
private final ClaudeService claudeService;
|
|
|
|
|
|
|
|
- private final YhMailService yhMailService;
|
|
|
|
|
-
|
|
|
|
|
private final UserDistributePosterRecordMapper userDistributePosterRecordMapper;
|
|
private final UserDistributePosterRecordMapper userDistributePosterRecordMapper;
|
|
|
|
|
|
|
|
private final OrderDonRenewRecordMapper orderDonRenewRecordMapper;
|
|
private final OrderDonRenewRecordMapper orderDonRenewRecordMapper;
|
|
@@ -173,6 +164,8 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
|
|
|
|
|
private final UserMirrorShopMapper userMirrorShopMapper;
|
|
private final UserMirrorShopMapper userMirrorShopMapper;
|
|
|
|
|
|
|
|
|
|
+ private final CommonMailService commonMailService;
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public SearchResult<RenewalView> getMyTicket(long userId, Boolean isLoginPopularize, String customId, String account, String orderNo, Integer cmt) {
|
|
public SearchResult<RenewalView> getMyTicket(long userId, Boolean isLoginPopularize, String customId, String account, String orderNo, Integer cmt) {
|
|
|
User u = userMapper.selectById(userId);
|
|
User u = userMapper.selectById(userId);
|
|
@@ -586,10 +579,6 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
throw BusinessRuntimeException.getInstance("车票未配置账号");
|
|
throw BusinessRuntimeException.getInstance("车票未配置账号");
|
|
|
}
|
|
}
|
|
|
account = renewalView.getAccount();
|
|
account = renewalView.getAccount();
|
|
|
- //收取邮件的关联邮箱
|
|
|
|
|
- if (StrUtil.isNotEmpty(renewalView.getRelateEmail())) {
|
|
|
|
|
- account = renewalView.getRelateEmail();
|
|
|
|
|
- }
|
|
|
|
|
String password = renewalView.getPassword();
|
|
String password = renewalView.getPassword();
|
|
|
if (StrUtil.hasEmpty(account, password)) {
|
|
if (StrUtil.hasEmpty(account, password)) {
|
|
|
throw BusinessRuntimeException.getInstance("您的车票账号密码异常,请联系客服...");
|
|
throw BusinessRuntimeException.getInstance("您的车票账号密码异常,请联系客服...");
|
|
@@ -611,15 +600,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
redisService.incr(key, 1L);
|
|
redisService.incr(key, 1L);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- if (cuiQiuMailService.isCuiQiuEmail(account)) {
|
|
|
|
|
- return cuiQiuMailService.getVerifyCode(renewalView.getAccount(), renewalView.getRelateEmail(), renewalView.getGoodsId(), type, loginReq.getLinkType(), false);
|
|
|
|
|
- }
|
|
|
|
|
- //是否是 mail lu邮箱
|
|
|
|
|
- if (mailLuService.isMailLuEmail(account)) {
|
|
|
|
|
- return mailLuService.getVerifyCode(account, renewalView.getGoodsId(), type, loginReq.getLinkType(), false);
|
|
|
|
|
- }
|
|
|
|
|
- //银河域名邮件
|
|
|
|
|
- String code = yhMailService.getVerifyCode(account, renewalView.getGoodsId(), type, loginReq.getLinkType(), false);
|
|
|
|
|
|
|
+ String code = commonMailService.getTicketMailCode(renewalView.getGoodsId(), account, renewalView.getRelateEmail(), renewalView.getGptEmailPwd(), renewalView.getCreatedTime(), type, loginReq.getLinkType(), false);
|
|
|
GroupsRelationLoginCodeRecord record = new GroupsRelationLoginCodeRecord();
|
|
GroupsRelationLoginCodeRecord record = new GroupsRelationLoginCodeRecord();
|
|
|
record.setUserId(userId);
|
|
record.setUserId(userId);
|
|
|
record.setRelationId(relationId);
|
|
record.setRelationId(relationId);
|
|
@@ -998,24 +979,12 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
throw BusinessRuntimeException.getInstance("车票未配置账号");
|
|
throw BusinessRuntimeException.getInstance("车票未配置账号");
|
|
|
}
|
|
}
|
|
|
String account = renewalView.getAccount();
|
|
String account = renewalView.getAccount();
|
|
|
- //收取邮件的关联邮箱
|
|
|
|
|
- if (StrUtil.isNotEmpty(renewalView.getRelateEmail())) {
|
|
|
|
|
- account = renewalView.getRelateEmail();
|
|
|
|
|
- }
|
|
|
|
|
String password = renewalView.getPassword();
|
|
String password = renewalView.getPassword();
|
|
|
if (StrUtil.hasEmpty(account, password)) {
|
|
if (StrUtil.hasEmpty(account, password)) {
|
|
|
throw BusinessRuntimeException.getInstance("您的车票账号密码异常,请联系客服...");
|
|
throw BusinessRuntimeException.getInstance("您的车票账号密码异常,请联系客服...");
|
|
|
}
|
|
}
|
|
|
-
|
|
|
|
|
- if (cuiQiuMailService.isCuiQiuEmail(renewalView.getAccount())) {
|
|
|
|
|
- return cuiQiuMailService.getVerifyCode(renewalView.getAccount(), renewalView.getRelateEmail(), renewalView.getGoodsId(), null, 1, true);
|
|
|
|
|
- }
|
|
|
|
|
- //是否是 mail lu邮箱
|
|
|
|
|
- if (mailLuService.isMailLuEmail(account)) {
|
|
|
|
|
- return mailLuService.getVerifyCode(account, renewalView.getGoodsId(), null, 1, true);
|
|
|
|
|
- }
|
|
|
|
|
- //银河域名邮件
|
|
|
|
|
- return yhMailService.getVerifyCode(account, renewalView.getGoodsId(), null, 1, true);
|
|
|
|
|
|
|
+ String code = commonMailService.getTicketMailCode(renewalView.getGoodsId(), account, renewalView.getRelateEmail(), renewalView.getGptEmailPwd(), renewalView.getCreatedTime(), null, 1, true);
|
|
|
|
|
+ return code;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -1027,23 +996,10 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
return null;
|
|
return null;
|
|
|
}
|
|
}
|
|
|
String password = at.getPassword();
|
|
String password = at.getPassword();
|
|
|
- if (StrUtil.isNotEmpty(at.getRelateEmail())) {
|
|
|
|
|
- account = at.getRelateEmail();
|
|
|
|
|
- }
|
|
|
|
|
if (StrUtil.hasEmpty(account, password)) {
|
|
if (StrUtil.hasEmpty(account, password)) {
|
|
|
throw BusinessRuntimeException.getInstance("账号异常");
|
|
throw BusinessRuntimeException.getInstance("账号异常");
|
|
|
}
|
|
}
|
|
|
- if (StrUtil.isNotEmpty(at.getRelateEmail())) {
|
|
|
|
|
- account = at.getRelateEmail();
|
|
|
|
|
- }
|
|
|
|
|
- if (cuiQiuMailService.isCuiQiuEmail(account)) {
|
|
|
|
|
- return cuiQiuMailService.getVerifyCode(at.getAccount(), at.getRelateEmail(), at.getGoodsId(), null, null, false);
|
|
|
|
|
- }
|
|
|
|
|
- //是否是 mail lu邮箱
|
|
|
|
|
- if (mailLuService.isMailLuEmail(account)) {
|
|
|
|
|
- return mailLuService.getVerifyCode(account, at.getGoodsId(), null, null, false);
|
|
|
|
|
- }
|
|
|
|
|
- String code = yhMailService.getVerifyCode(account, at.getGoodsId(), null, null, false);
|
|
|
|
|
|
|
+ String code = commonMailService.getTicketMailCode(at.getGoodsId(), account, at.getRelateEmail(), at.getGptEmailPwd(), at.getCreatedTime(), null, null, false);
|
|
|
return code;
|
|
return code;
|
|
|
}
|
|
}
|
|
|
|
|
|