1.如果是composer安装的tp就使用下面的命令获取验证码类,是官网下载的可以直接使用验证码类 composerrequiretopthink/think-captcha 2.在需要的额地方加入img标签{:captcha_src