优化验证码

pull/434/MERGE
Karson 2023-06-15 22:12:46 +08:00
parent 96dd46d32d
commit 4dabb80044
1 changed files with 0 additions and 7 deletions

View File

@ -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,