|
@@ -137,19 +137,18 @@ public class CuiQiuMailServiceImpl implements CuiQiuMailService {
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
String urlPref = "https://www.netflix.com/account/update-primary-location";
|
|
String urlPref = "https://www.netflix.com/account/update-primary-location";
|
|
|
- code = TicketCodeCommonUtil.extractUrl(body, urlPref);
|
|
|
|
|
- if (StrUtil.isEmpty(code)) {
|
|
|
|
|
|
|
+ String nfVerifyUrl = TicketCodeCommonUtil.extractUrl(body, urlPref);
|
|
|
|
|
+ if (StrUtil.isEmpty(nfVerifyUrl)) {
|
|
|
urlPref = "https://www.netflix.com/account/travel/verify";
|
|
urlPref = "https://www.netflix.com/account/travel/verify";
|
|
|
- code = TicketCodeCommonUtil.extractUrl(body, urlPref);
|
|
|
|
|
- if (StrUtil.isEmpty(code)) {
|
|
|
|
|
|
|
+ nfVerifyUrl = TicketCodeCommonUtil.extractUrl(body, urlPref);
|
|
|
|
|
+ if (StrUtil.isEmpty(nfVerifyUrl)) {
|
|
|
throw BusinessRuntimeException.getInstance("获取认证链接失败,请重新获取");
|
|
throw BusinessRuntimeException.getInstance("获取认证链接失败,请重新获取");
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
- String neurl = urlPref + code;
|
|
|
|
|
//非点击装置同步更新按钮 直接返回链接
|
|
//非点击装置同步更新按钮 直接返回链接
|
|
|
- if (!sync) return neurl;
|
|
|
|
|
|
|
+ if (!sync) return nfVerifyUrl;
|
|
|
//失败返回验证链接
|
|
//失败返回验证链接
|
|
|
- if (!groupsRelationNetflix.confirmUpdate(neurl)) {
|
|
|
|
|
|
|
+ if (!groupsRelationNetflix.confirmUpdate(nfVerifyUrl)) {
|
|
|
return url;
|
|
return url;
|
|
|
}
|
|
}
|
|
|
return StrUtil.EMPTY;
|
|
return StrUtil.EMPTY;
|