tp5 驗證碼驗證 驗證碼刷新

首先使用Composer安裝think-captcha擴展包: composer require topthink/think-captcha 在控制器中使用下面的代碼進行驗證碼生成: <?php namespace app\index\controller; use think\Controller; use think\Request; use think\captcha\Captcha;
相關文章
相關標籤/搜索