From a807eee1ec67db4a57cab171c7777e92b462dc55 Mon Sep 17 00:00:00 2001 From: vilson <545522390@qq.com> Date: Mon, 24 Jun 2019 19:27:24 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=94=A8=E6=88=B7=E6=B3=A8?= =?UTF-8?q?=E5=86=8C=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: vilson <545522390@qq.com> --- application/common/Model/Member.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/application/common/Model/Member.php b/application/common/Model/Member.php index 92cfe9c..c9a2f44 100644 --- a/application/common/Model/Member.php +++ b/application/common/Model/Member.php @@ -68,6 +68,12 @@ class Member extends CommonModel unset($memberData['mobile']); } } + if (isset($memberData['email']) && $memberData['email']) { + $has = self::where(['email' => $memberData['email']])->find(); + if ($has) { + unset($memberData['email']); + } + } $result = self::create($memberData);