Przeglądaj źródła

Update:校验为0的情况

Jinhui Zhu 5 lat temu
rodzic
commit
486aed87fd
1 zmienionych plików z 1 dodań i 0 usunięć
  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) != "";
 	}