소스 검색

Update:校验为0的情况

Jinhui Zhu 5 년 전
부모
커밋
486aed87fd
1개의 변경된 파일1개의 추가작업 그리고 0개의 파일을 삭제
  1. 1 0
      src/Library/Validate.php

+ 1 - 0
src/Library/Validate.php

@@ -202,6 +202,7 @@ class Validate
 	public function required($str)
 	{
 		if (is_array($str)) return !empty($str);
+		if ($this->number($str)) return true;
 		return trim($str) != "";
 	}