PbootCMS后台关闭验证码,登录提示“验证码不能为空”的解决方法
PbootCMS后台关闭验证码,登录提示“验证码不能为空”的解决方法
apps/admin/controller/IndexController.php 大概在126行:
if (!$checkcode) {
json(0, '验证码不能为空!');
}
改成
if (!$checkcode && $this->config('admin_check_code')) {
json(0, '验证码不能为空!');
}
更新时间:2026-03-08 14:59:48
上一篇:为何生成静态页的时候或者上传附件过程中有报错:Maximum execution time of 30 seconds exceeded
下一篇:宝塔Nginx环境404?
