feat: 同步下新环境
This commit is contained in:
@@ -15,11 +15,10 @@ class ValidateException extends \RuntimeException
|
||||
{
|
||||
protected $error;
|
||||
|
||||
public function __construct($error, $code = 0)
|
||||
public function __construct($error)
|
||||
{
|
||||
$this->error = $error;
|
||||
$this->message = is_array($error) ? implode(PHP_EOL, $error) : $error;
|
||||
$this->code = $code;
|
||||
$this->message = is_array($error) ? implode("\n\r", $error) : $error;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user