From 0e1686e7259e22f4c5c366e452f9abfad1c42ce8 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 22 Mar 2016 17:39:35 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3validate=E7=B1=BB=E7=9A=84uni?= =?UTF-8?q?que=E8=A7=84=E5=88=99=E4=BD=BF=E7=94=A8=E5=A4=9A=E5=AD=97?= =?UTF-8?q?=E6=AE=B5=E6=A3=80=E6=B5=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/Validate.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/library/think/Validate.php b/library/think/Validate.php index c3264913..17540de0 100644 --- a/library/think/Validate.php +++ b/library/think/Validate.php @@ -538,9 +538,9 @@ class Validate $model = Loader::table($rule[0]); $field = isset($rule[1]) ? $rule[1] : $field; - if (strpos($field, '|')) { + if (strpos($field, '^')) { // 支持多个字段验证 - $fields = explode('|', $field); + $fields = explode('^', $field); foreach ($fields as $field) { $map[$field] = $data[$field]; }