| | |
| | | * @return string msg 返回提示 |
| | | */ |
| | | public function login(){ |
| | | $rs = array('code' => 0, 'msg' => ''); |
| | | $rs = array('code' => 0, 'msg' => '', 'info' => array()); |
| | | $user_service = new Domain_User(); |
| | | if(!$user_service->checkPhone($this->phone) && $user_service->checkUserStatus($this->phone)){ |
| | | if($user_service->login($this->phone, $this->password)){ |
| | | $rs['msg'] = '登录验证成功'; |
| | | $rs['info'] = $user_service->getUserInfoByPhone($this->phone); |
| | | } |
| | | else{ |
| | | $rs['code'] = 1; |
| | |
| | | * @return string info.is_lock 是否被锁定,0表示未锁定,1表示锁定 |
| | | */ |
| | | public function getUserInfo(){ |
| | | $rs = array('code' => 0, 'msg' => '', 'info' => array()); |
| | | $rs = array('code' => 0, 'msg' => '', 'info' => array()); |
| | | |
| | | $user_service = new Domain_User(); |
| | | $user = $user_service->getUserInfoByPhone($this->phone); |