请问为啥使用批量验证不起效果

浏览:305 发布日期:2020/01/02 分类:ThinkPHP5专区
if(!$validate->scene('add')->check($data)){
$this->error($validate->getError());
}
这样正常显示单个验证错误消息
-----------------------------------
if(!$validate->scene('add')->batch()->check($data)){
$this->error($validate->getError());
}
这样写就不显示验证错误消息了,请问为什么啊

protected $batchValidate=true;
protected $failException=true;
这两个都设置过了
最佳答案
评论( 相关
后面还有条评论,点击查看>>