升级Thinkphp到5127版本
This commit is contained in:
1 parent
22a8f915e3
commit
9b8bd06b33
24 files changed
+504
-185
No files matched your search
@@ -519,7 +519,7 @@ class Validate
|
||||
|
||||
if (isset($this->append[$field])) {
|
||||
// 追加额外的验证规则
|
||||
$rules = array_unique(array_merge($rules, $this->append[$field]));
|
||||
$rules = array_unique(array_merge($rules, $this->append[$field]), SORT_REGULAR);
|
||||
}
|
||||
|
||||
$i = 0;
|
||||
@@ -1514,12 +1514,12 @@ class Validate
|
||||
$scene = $this->currentScene;
|
||||
}
|
||||
|
||||
$this->only = $this->append = $this->remove = [];
|
||||
|
||||
if (empty($scene)) {
|
||||
return;
|
||||
}
|
||||
|
||||
$this->only = $this->append = $this->remove = [];
|
||||
|
||||
if (method_exists($this, 'scene' . $scene)) {
|
||||
call_user_func([$this, 'scene' . $scene]);
|
||||
} elseif (isset($this->scene[$scene])) {
|
||||
|
||||
Reference in new issue
Block a user