wupengfei 3 anos atrás
pai
commit
f0d156cc49
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      application/api/controller/Usercenter.php

+ 1 - 1
application/api/controller/Usercenter.php

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