public function put($id, $update, $before = null, $after = null, $put_style = 'default') { $loginApi = new KUser_loginApi(); $uid = $loginApi->iGetLoginUid(); if ($uid != $id['uid']) { throw new Exception('修改相册失败', 1); } $photoApi = new KPhoto_Api(); switch ($put_style) { case 'title': $photoApi->changeAlbumTitle($uid, $id['albumid'], $update); break; } return array('key' => $id); }