|
@@ -108,7 +108,7 @@ class Usercenter extends Base
|
|
|
->find();
|
|
|
// if($store_member_sms['code'] != $code) $this->error('验证码错误');
|
|
|
//判断手机号是否已注册
|
|
|
- $member_id = Db::name('store_member')->where('phone',$phone)->where('id','<>',$this->uid)->value('id');
|
|
|
+ $member_id = Db::name('store_member')->where('phone','=',$phone)->where('id','<>',$this->uid)->value('id');
|
|
|
if($member_id) $this->error('手机号已注册过');
|
|
|
$up = ['phone'=>$phone];
|
|
|
$res = Db::name('store_member')->where('id',$uid)->update($up);
|