diff --git a/application/api/controller/Common.php b/application/api/controller/Common.php index 886c9339..1d01a6c6 100644 --- a/application/api/controller/Common.php +++ b/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,