Browse Source

测试用验证码

zhangdehua 1 năm trước cách đây
mục cha
commit
1c2b82392f
1 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 4 3
      app/index/service/passport/MailCaptcha.php

+ 4 - 3
app/index/service/passport/MailCaptcha.php

@@ -221,9 +221,10 @@ class MailCaptcha extends BaseService
 
     public function checkCaptcha($captchaCode = '', $email = '')
     {
-//        if ($captchaCode == '888888') {
-//            return true;
-//        }
+        //todo
+        if ($captchaCode == '888888') {
+            return true;
+        }
         $localCode = Cache::get('captchaSMS.' . $email);
         if (empty($localCode) || empty($localCode['code']) || $localCode['code'] != $captchaCode) {
             throwError('Sorry, the code is invalid!');