ThinkPHP5 后台验证码不显示问题修复方法

分享
未结 精华
1 1498
chichu
chichu 2019-04-03

thinkPHP5 后台验证码不显示
解决:
找到 vendor\topthink\think-captcha\src\CaptchaController.php 文件,在 index 方法的第一行添加 ob_clean();


class CaptchaController{
    public function index($id = ""){
        ob_clean();
        $captcha = new Captcha((array)Config::get('captcha'));
        return $captcha->entry($id);
    }
}


上一篇:免费版本与pro版本哪个更好用?

下一篇:ueditor编辑器加video代码被过滤,ueditor.config.js中明明加上了video的标签

回帖
  • 2019-06-25 19:52:29

    我加了还是一样坏的,本地调试是好的??,求助!!


    0 回复
取消评论