thinkphp5 validate post没有值报错,需要增加空值,才不报错。

浏览:1258 发布日期:2017/03/21 分类:ThinkPHP5专区 关键字: thinkphp5 validate post 验证器类
post没有值,会提示:$rs = $acSetting->allowField(true)->validate(true)->save($_POST);

SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '0' at line 1
按照文件给出的路径没有用,验证器类文件放在
application\common\validate\UsersWeiXin.php

希望官方解决下
最佳答案
评论( 相关
后面还有条评论,点击查看>>