Selaa lähdekoodia

fix 获取奈飞登录验证链接

zoujiajian 2 vuotta sitten
vanhempi
sitoutus
fcb7407e34

+ 5 - 1
netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

@@ -602,7 +602,11 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 			String urlPref = "https://www.netflix.com/account/update-primary-location";
 			code = StrUtil.subBetween(body, "[" + urlPref, "]");
 			if (StrUtil.isEmpty(code)) {
-				throw BusinessRuntimeException.getInstance("获取认证链接失败,请重新获取");
+				urlPref = "https://www.netflix.com/account/travel/verify";
+				code = StrUtil.subBetween(body, "[" + urlPref, "]");
+				if (StrUtil.isEmpty(code)) {
+					throw BusinessRuntimeException.getInstance("获取认证链接失败,请重新获取");
+				}
 			}
 			return urlPref + code;
 		}