Explorar el Código

万能验证码

kphcdr hace 1 año
padre
commit
bc9535ddb0
Se han modificado 1 ficheros con 3 adiciones y 0 borrados
  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;
     }