mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
修正
This commit is contained in:
@@ -257,7 +257,7 @@ class Validate
|
|||||||
}
|
}
|
||||||
// 场景检测
|
// 场景检测
|
||||||
if (!empty($scene)) {
|
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;
|
continue;
|
||||||
} elseif (is_array($scene) && !in_array($key, $scene)) {
|
} elseif (is_array($scene) && !in_array($key, $scene)) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user