Commit 27f83f2b authored by 蒋林's avatar 蒋林

苏宁-验证码规则

parent b220f25b
......@@ -183,7 +183,7 @@ function phone_code($mail, $pwd)
if ($num) {
$body = imap_base64(imap_fetchbody($mbox, imap_num_msg($mbox), 1));
preg_match('/验证码[^\d]+(\d{6})/', $body, $code);
preg_match('/验证码[^\d]+(\d+)/', $body, $code);
preg_match('/2\d{3}-[\s\S]{14}/', $body, $date);
if (isset($code[1]) && isset($date[0])) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment