tp框架更新

This commit is contained in:
devil_gong
2019-11-13 11:54:57 +08:00
parent 7165bc29ce
commit 96c384491e
54 changed files with 336 additions and 843 deletions

View File

@ -18,7 +18,7 @@ class ValidateException extends \RuntimeException
public function __construct($error, $code = 0)
{
$this->error = $error;
$this->message = is_array($error) ? implode(PHP_EOL, $error) : $error;
$this->message = is_array($error) ? implode("\n\r", $error) : $error;
$this->code = $code;
}