mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-06 07:02:47 +08:00
修正Validate类message方法
This commit is contained in:
@@ -113,13 +113,13 @@ class Validate
|
|||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 注册验证(类型)规则
|
* 设置提示信息
|
||||||
* @access public
|
* @access public
|
||||||
* @param string $type 验证规则类型
|
* @param string|array $name 字段名称
|
||||||
* @param mixed $callback callback方法(或闭包)
|
* @param string $message 提示信息
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function message($name, $message)
|
public function message($name, $message = '')
|
||||||
{
|
{
|
||||||
if (is_array($name)) {
|
if (is_array($name)) {
|
||||||
$this->message = array_merge($this->message, $name);
|
$this->message = array_merge($this->message, $name);
|
||||||
|
|||||||
Reference in New Issue
Block a user