Quellcode durchsuchen

fix GPT的sora类型验证码

zoujiajian vor 1 Jahr
Ursprung
Commit
e1c8c2cc17

+ 9 - 0
netflix-common/src/main/java/com/cyksj/common/util/TicketCodeCommonUtil.java

@@ -90,9 +90,18 @@ public class TicketCodeCommonUtil {
 				str = "ChatGPT Log-in Code";
 				if (!body.contains(str)) {
 					str = "Enter this temporary verification code";
+					if (!body.contains(str)) {
+						str = "[1] Your Sora code is 462040";
+					}
+					if (!body.contains(str)) {
+						str = "[1] Your ChatGPT code is";
+					}
 					if (!body.contains(str)) {
 						str = "Your ChatGPT code is";
 					}
+					if (!body.contains(str)) {
+						str = "Your Sora code is";
+					}
 				}
 			}
 		}

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

@@ -45,7 +45,7 @@ public class CommonMailServiceImpl implements CommonMailService {
 					HttpRequest post = HttpUtil.createGet(url);
 					HttpResponse execute = post.execute();
 					String body = execute.body();
-					if (body.contains("Your ChatGPT code is")) {
+					if (body.contains("Your ChatGPT code is") || body.contains("Your Sora code is")) {
 						String code = TicketCodeCommonUtil.getTicketCodeStr(body, goodsId);
 						return code;
 					}