From 1ba9636455660af0bce4e15ab68d022f61c1c711 Mon Sep 17 00:00:00 2001 From: hdm Date: Wed, 27 Jul 2022 09:35:00 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A2=E6=88=B7=E6=A8=A1=E5=9D=97=E8=81=94?= =?UTF-8?q?=E7=B3=BB=E4=BA=BA=E5=BC=80=E6=94=BE=E8=81=94=E7=B3=BB=E4=BA=BA?= =?UTF-8?q?=E6=89=8B=E6=9C=BA=E5=8F=B7=E7=A0=81=E5=90=8C=E6=A0=B7=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/customer/validate/CustomerContactCheck.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/customer/validate/CustomerContactCheck.php b/app/customer/validate/CustomerContactCheck.php index 163c249..e21bc72 100644 --- a/app/customer/validate/CustomerContactCheck.php +++ b/app/customer/validate/CustomerContactCheck.php @@ -13,13 +13,13 @@ class CustomerContactCheck extends Validate { protected $rule = [ 'name' => 'require', - 'mobile' => 'require|unique:customer_contact', + 'mobile' => 'require', 'id' => 'require', ]; protected $message = [ 'name.require' => '联系人姓名不能为空', - 'mobile.unique' => '同样的手机号码已经存在', + 'mobile' => '手机号码不能为空', 'id.require' => '缺少更新条件', ];