瀏覽代碼

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) != "";
 	}