|
|
|
@ -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();
|
|
|
|
|