|
|
@@ -536,7 +536,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
throw BusinessRuntimeException.getInstance("您的车票账号密码异常,请联系客服...");
|
|
|
}
|
|
|
if (renewalView.getAccount().contains(CUI_QIU_EMAIL_SUFFIX)) {
|
|
|
- return cuiQiuMailService.getVerifyCode(renewalView.getAccount(), renewalView.getGoodsId(), type, sync);
|
|
|
+ return cuiQiuMailService.getVerifyCode(renewalView.getAccount(), renewalView.getGoodsId(), type, sync, loginReq.getLinkType());
|
|
|
}
|
|
|
//获取邮箱密码
|
|
|
SysEmail sysEmail = sysEmailMapper.selectOne(Wrappers.lambdaQuery(SysEmail.class)
|
|
|
@@ -564,7 +564,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
if (execute.getStatus() != HttpStatus.HTTP_OK) {
|
|
|
throw BusinessRuntimeException.getInstance("获取验证码异常,请联系客服...");
|
|
|
}
|
|
|
- String code = getDifferentGoodsCode(renewalView.getGoodsId(), execute.body(), type, sync);
|
|
|
+ String code = getDifferentGoodsCode(renewalView.getGoodsId(), execute.body(), type, sync, loginReq.getLinkType());
|
|
|
GroupsRelationLoginCodeRecord record = new GroupsRelationLoginCodeRecord();
|
|
|
record.setUserId(userId);
|
|
|
record.setRelationId(relationId);
|
|
|
@@ -762,7 +762,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
return expiryTickets;
|
|
|
}
|
|
|
|
|
|
- public String getDifferentGoodsCode(Long goodsId, String body, Integer type, Boolean sync) {
|
|
|
+ public String getDifferentGoodsCode(Long goodsId, String body, Integer type, Boolean sync, Integer linkType) {
|
|
|
String code = null;
|
|
|
//奈飞
|
|
|
if (goodsId == 1) {
|
|
|
@@ -777,14 +777,18 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
throw BusinessRuntimeException.getInstance("查询失败,请检查是否发送了登陆码..");
|
|
|
}
|
|
|
} else {
|
|
|
- String urlPref = "https://www.netflix.com/account/update-primary-location";
|
|
|
- code = StrUtil.subBetween(body, "[" + urlPref, "]");
|
|
|
- if (StrUtil.isEmpty(code)) {
|
|
|
+ String urlPref;
|
|
|
+ //更新装置
|
|
|
+ if (linkType == 1) {
|
|
|
+ urlPref = "https://www.netflix.com/account/update-primary-location";
|
|
|
+ code = StrUtil.subBetween(body, "[" + urlPref, "]");
|
|
|
+ } else {
|
|
|
+ //验证链接
|
|
|
urlPref = "https://www.netflix.com/account/travel/verify";
|
|
|
code = StrUtil.subBetween(body, "[" + urlPref, "]");
|
|
|
- if (StrUtil.isEmpty(code)) {
|
|
|
- throw BusinessRuntimeException.getInstance("获取认证链接失败,请重新获取");
|
|
|
- }
|
|
|
+ }
|
|
|
+ if (StrUtil.isEmpty(code)) {
|
|
|
+ throw BusinessRuntimeException.getInstance("获取认证链接失败,请重新获取");
|
|
|
}
|
|
|
String url = urlPref + code;
|
|
|
//非点击装置同步更新按钮 直接返回链接
|