|
|
@@ -616,13 +616,15 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
|
|
|
if (StrUtil.isEmpty(code)) {
|
|
|
urlPref = "https://www.netflix.com/account/travel/verify";
|
|
|
code = StrUtil.subBetween(body, "[" + urlPref, "]");
|
|
|
- if (StrUtil.isEmpty(code)) {
|
|
|
+ if (StrUtil.isEmpty(code) && type == null) {
|
|
|
throw BusinessRuntimeException.getInstance("获取认证链接失败,请重新获取");
|
|
|
}
|
|
|
}
|
|
|
- return urlPref + code;
|
|
|
+ if (StrUtil.isNotBlank(code)) {
|
|
|
+ return urlPref + code;
|
|
|
+ }
|
|
|
}
|
|
|
- if (type!=null && type == 1) {
|
|
|
+ if (type != null && type == 1) {
|
|
|
throw BusinessRuntimeException.getInstance("查询失败,请检查是否发送了登陆码..");
|
|
|
}
|
|
|
}
|