$this->error($validate->getError());
}
这样正常显示单个验证错误消息
-----------------------------------
if(!$validate->scene('add')->batch()->check($data)){
$this->error($validate->getError());
}
这样写就不显示验证错误消息了,请问为什么啊
protected $batchValidate=true;
protected $failException=true;
这两个都设置过了
最佳答案