bark自动复制动态密码

pull/67/head
pppscn 4 years ago
parent fb6f1d4acf
commit 966356ff57

@ -35,7 +35,8 @@ public class SenderBarkMsg {
barkServer += "/" + URLEncoder.encode(content, "UTF-8");
barkServer += "?isArchive=1"; //自动保存
int isCode = content.indexOf("验证码");
if (isCode != -1) {
int isPassword = content.indexOf("动态密码");
if (isCode != -1 || isPassword != -1) {
Pattern p = Pattern.compile("(\\d{4,6})");
Matcher m = p.matcher(content);
if (m.find()) {

Loading…
Cancel
Save