Bladeren bron

优化验证码

Karson 1 jaar geleden
bovenliggende
commit
4dabb80044
1 gewijzigde bestanden met toevoegingen van 0 en 7 verwijderingen
  1. 0 7
      application/api/controller/Common.php

+ 0 - 7
application/api/controller/Common.php

@@ -151,13 +151,6 @@ class Common extends Api
      */
     public function captcha($id = "")
     {
-        if ($this->request->isPost()) {
-            $captcha = $this->request->post("captcha");
-            if (!\think\Validate::is($captcha, 'captcha')) {
-                $this->error("验证码不正确");
-            }
-            $this->success("");
-        }
         \think\Config::set([
             'captcha' => array_merge(config('captcha'), [
                 'fontSize' => 44,