fix gmail scan null results

This commit is contained in:
heyethereum
2024-08-14 21:15:29 +08:00
parent 9adb53e7ab
commit b176e5c54f
7 changed files with 10 additions and 48 deletions

View File

@@ -31,6 +31,10 @@ public class SMSVerificationService {
}
public void parseSMSString(SMSEntity smsEntity, String smsto) throws IllegalArgumentException{
// Validate the string format
if (smsto == null || smsto.isEmpty()) {
throw new InvalidFormatExceptions("sms cannot be null or empty.");
}
// Remove the "SMSTO:" prefix
String data = smsto.substring(6);