创作降本:取消同轮retry、两轮history;听书创作/播放分层与前端配套。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -250,6 +250,18 @@ const server = createServer(async (req, res) => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (req.method === "POST" && sub === "/listen/play") {
|
||||
try {
|
||||
const view = await sessionManager.enterListenPlay(sessionId);
|
||||
json(res, 200, view);
|
||||
} catch (err) {
|
||||
json(res, 400, {
|
||||
error: err instanceof Error ? err.message : "无法进入播放",
|
||||
});
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (req.method === "GET" && sub === "/listen/tts") {
|
||||
const sectionId = (url.searchParams.get("sectionId") ?? "").trim();
|
||||
if (!sectionId) {
|
||||
|
||||
Reference in New Issue
Block a user