找下以下文件 

vendor/topthink/think-captcha/src/CaptchaController.php

修改第20行.在后面加上

ob_clean();
参考如下:
namespace think\captcha;

use think\Config;

class CaptchaController
{
    public function index($id = "")
    {
        $captcha = new Captcha((array)Config::get('captcha'));ob_clean();  //加在这里
        return $captcha->entry($id);
    }
}
如下图:

点赞(0) 打赏

评论列表 共有 0 条评论

暂无评论
立即
投稿

微信公众账号

微信扫一扫加关注

发表
评论
返回
顶部