| | |
| | | if($result == 0){ |
| | | $user_service = new Domain_User(); |
| | | $result = $user_service->resetPwd($this->phone, $this->password); |
| | | if($reslt == 0){ |
| | | if($result == 0){ |
| | | $rs['msg'] = '密码重置成功'; |
| | | } |
| | | elseif($result == 1){ |
| | |
| | | |
| | | /** |
| | | * 用户信息更新 |
| | | * @desc 用户信息更新 |
| | | * @return string user_id 用户id |
| | | * @return string field 字段名称,目前仅支持修改['refresh_frequency', 'video', 'is_open_upload'] |
| | | * @return string value 数值 |
| | | */ |
| | | public function updateUserInfo(){ |
| | | $rs = array('code' => 0, 'msg' => ''); |
| | | $promit_field = array('refresh_frequency', 'video', 'is_open_upload'); |
| | | if(in_array($this->field, $promit_field)){ |
| | | $user_service = new Domain_User(); |