public function updateInfo()
 {
     if (IS_POST) {
         $arr = I('post.');
         $password = $arr['password'];
         if (!$password) {
             $this->apiError(0, '参数错误');
         }
         $user = new UserApi();
         unset($arr['password']);
         $data = $arr;
         if (empty($data)) {
             $this->apiError(0, '非法请求');
         }
         $res = $user->updateInfo($this->uid, $password, $data);
         if ($res['status']) {
             S('userinfo_' . $this->uid, null);
             $this->apiSuccess('success');
         } else {
             $this->apiError(0, '修改失败');
         }
     }
 }