mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
改进Model类
This commit is contained in:
@@ -515,12 +515,12 @@ abstract class Model implements \JsonSerializable, \ArrayAccess
|
||||
}
|
||||
|
||||
/**
|
||||
* 自动验证当前数据对象值
|
||||
* @access public
|
||||
* 自动验证数据
|
||||
* @access protected
|
||||
* @param array $data 验证数据
|
||||
* @return bool
|
||||
*/
|
||||
public function validateData($data)
|
||||
protected function validateData($data)
|
||||
{
|
||||
if (!empty($this->validate)) {
|
||||
$info = $this->validate;
|
||||
|
||||
Reference in New Issue
Block a user