mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-02 21:52:34 +08:00
修正
This commit is contained in:
@@ -257,7 +257,7 @@ class Validate
|
||||
}
|
||||
// 场景检测
|
||||
if (!empty($scene)) {
|
||||
if ($scene instanceof \Closure && call_user_func_array($scene, [$key, &$data])) {
|
||||
if ($scene instanceof \Closure && !call_user_func_array($scene, [$key, &$data])) {
|
||||
continue;
|
||||
} elseif (is_array($scene) && !in_array($key, $scene)) {
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user