mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-08 15:42:48 +08:00
修正
This commit is contained in:
@@ -60,8 +60,8 @@ class Validate
|
|||||||
*/
|
*/
|
||||||
public function __construct(array $rules = [], $message = [], $config = [])
|
public function __construct(array $rules = [], $message = [], $config = [])
|
||||||
{
|
{
|
||||||
$this->rule = $rules;
|
$this->rule = array_merge($this->rule, $rules);
|
||||||
$this->message = $message;
|
$this->message = array_merge($this->message, $message);
|
||||||
$this->config = array_merge($this->config, $config);
|
$this->config = array_merge($this->config, $config);
|
||||||
if (is_string($this->config['value_validate'])) {
|
if (is_string($this->config['value_validate'])) {
|
||||||
$this->config['value_validate'] = explode(',', $this->config['value_validate']);
|
$this->config['value_validate'] = explode(',', $this->config['value_validate']);
|
||||||
|
|||||||
Reference in New Issue
Block a user