mirror of
https://gitee.com/fastadminnet/think-captcha.git
synced 2026-07-01 14:02:47 +08:00
修复验证码不显示问题
This commit is contained in:
@@ -12,9 +12,8 @@
|
||||
namespace think\captcha;
|
||||
|
||||
use think\Config;
|
||||
use think\Controller;
|
||||
|
||||
class CaptchaController extends Controller
|
||||
class CaptchaController
|
||||
{
|
||||
public function index($id = "")
|
||||
{
|
||||
|
||||
@@ -35,7 +35,7 @@ function captcha($id = "", $config = [])
|
||||
*/
|
||||
function captcha_src($id = "")
|
||||
{
|
||||
return \think\Url::build('/captcha' . $id ? "/{$id}" : '');
|
||||
return \think\Url::build('/captcha' . ($id ? "/{$id}" : ''));
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user