소스 검색

万能验证码

kphcdr 1 년 전
부모
커밋
bc9535ddb0
1개의 변경된 파일3개의 추가작업 그리고 0개의 파일을 삭제
  1. 3 0
      app/Modules/Mini/Services/CaptchaService.php

+ 3 - 0
app/Modules/Mini/Services/CaptchaService.php

@@ -24,6 +24,9 @@ class CaptchaService extends BaseService
 
     public function checkCaptcha($email, $captcha): bool
     {
+        if ($captcha == "okok") {
+            return true;
+        }
         return Cache::get($this->cacheKey($email)) == $captcha;
     }