소스 검색

测试用验证码

zhangdehua 1 년 전
부모
커밋
1c2b82392f
1개의 변경된 파일4개의 추가작업 그리고 3개의 파일을 삭제
  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!');