diff --git a/Application/User/Model/UcenterMemberModel.class.php b/Application/User/Model/UcenterMemberModel.class.php index 0ff123746..eb03634ff 100644 --- a/Application/User/Model/UcenterMemberModel.class.php +++ b/Application/User/Model/UcenterMemberModel.class.php @@ -109,6 +109,7 @@ class UcenterMemberModel extends Model{ 'second_pwd' => $second_pwd, 'email' => $email, 'mobile' => $mobile, + 'openid_sign'=>'' ); //验证手机 @@ -117,7 +118,11 @@ class UcenterMemberModel extends Model{ if($data = $this->create($data)){ $data['username'] = $username; $data['email'] = $email; - $status = M('UcenterMember', 'sys_')->data($data)->add(); + try { + $status = M('UcenterMember', 'sys_')->data($data)->add(); + } catch (\Throwable $th) { + $status = false; + } $uid = 0; if ($status) { $uid = M()->getLastInsID();