作者 wangzhi

222

@@ -44,7 +44,7 @@ class Register extends Api @@ -44,7 +44,7 @@ class Register extends Api
44 public function RegisterSign() 44 public function RegisterSign()
45 { 45 {
46 $param = $this->request->param(); 46 $param = $this->request->param();
47 - if (empty($param['password']||$param['password'] ==""||$param['password']==null)) { 47 + if (empty($param['password'])) {
48 $is_user = Db::name('user')->where(['mobile' => $param['mobile']])->find(); 48 $is_user = Db::name('user')->where(['mobile' => $param['mobile']])->find();
49 if ($is_user) { 49 if ($is_user) {
50 $this->error('您已注册过,请直接登陆', 0); 50 $this->error('您已注册过,请直接登陆', 0);