فهرست منبع

fix 兼容奈飞安全码

zoujiajian 7 ماه پیش
والد
کامیت
e96d16a257
1فایلهای تغییر یافته به همراه4 افزوده شده و 1 حذف شده
  1. 4 1
      netflix-service/src/main/java/com/cyksj/service/mail/impl/CuiQiuMailServiceImpl.java

+ 4 - 1
netflix-service/src/main/java/com/cyksj/service/mail/impl/CuiQiuMailServiceImpl.java

@@ -157,7 +157,7 @@ public class CuiQiuMailServiceImpl implements CuiQiuMailService {
 		if (goodsId == 1) {
 			if (type != null && type == 1) {
 				String pre = "NetflixSans-Regular, Helvetica, Roboto, Segoe UI, sans-serif; font-weight";
-				if (body.contains("輸入此代碼登入") || body.contains("输入此代码登录") || body.contains("Enter this code to sign in")) {
+				if (body.contains("輸入此代碼登入") || body.contains("输入此代码登录") || body.contains("Enter this code to sign in") || content.getSubject().contains("seu código de acesso")) {
 					code = StrUtil.subAfter(body, pre, false);
 					if (StrUtil.isEmpty(code)) {
 						code = StrUtil.subAfter(body, "font-weight: 400; color: #232323; padding-top: 20px;", true);
@@ -165,6 +165,9 @@ public class CuiQiuMailServiceImpl implements CuiQiuMailService {
 					if (StrUtil.isEmpty(code)) {
 						code = StrUtil.subAfter(body, "Enter this code to sign in", true);
 					}
+					if (StrUtil.isEmpty(code)) {
+						code = StrUtil.subAfter(body, "Informe este código para entrar", true);
+					}
 				}
 				if (StrUtil.isEmpty(code)) {
 					throw BusinessRuntimeException.getInstance("查询失败,请检查是否发送了登陆码..");