Browse Source

邮箱验证码

lizhen_gitee 6 months ago
parent
commit
c1da749963
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/common/library/Ems.php

+ 2 - 2
application/common/library/Ems.php

@@ -167,9 +167,9 @@ class Ems
         if($code == 1212){
             return true;
         }
-        $event = 'default';
+//        $event = 'default';
         $time = time() - self::$expire;
-        $ems = \app\common\model\Ems::where(['email' => $email, 'event' => $event])
+        $ems = \app\common\model\Ems::where(['email' => $email])
             ->order('id', 'DESC')
             ->find();
         if ($ems) {