diff --git a/application/common/Model/Member.php b/application/common/Model/Member.php index e40f1f5..92cfe9c 100644 --- a/application/common/Model/Member.php +++ b/application/common/Model/Member.php @@ -62,6 +62,12 @@ class Member extends CommonModel !isset($memberData['status']) && $memberData['status'] = 1; !isset($memberData['code']) && $memberData['code'] = createUniqueCode('member'); !isset($memberData['account']) && $memberData['account'] = RandomService::alnumLowercase(); + if (isset($memberData['mobile']) && $memberData['mobile']) { + $has = self::where(['mobile' => $memberData['mobile']])->find(); + if ($has) { + unset($memberData['mobile']); + } + } $result = self::create($memberData);