fix: harden ecommerce media history for launch

This commit is contained in:
2026-06-04 18:27:12 +08:00
parent e166722945
commit b81128d7ca
3 changed files with 244 additions and 11 deletions
+2 -2
View File
@@ -913,7 +913,7 @@ export const keyServerClient = {
async getProjectContent(projectId: string): Promise<WebCanvasWorkflow> {
const stored = readStoredSession();
if (!stored) {
throw new Error("闇€瑕佸厛鐧诲綍");
throw new Error("需要先登录");
}
const safeProjectId = encodeURIComponent(projectId.trim());
@@ -1000,7 +1000,7 @@ export const keyServerClient = {
async deleteProject(projectId: string, options?: DeleteProjectOptions): Promise<void> {
const stored = readStoredSession();
if (!stored) {
throw new Error("闇€瑕佸厛鐧诲綍");
throw new Error("需要先登录");
}
const path = options?.cleanupUserData ? `projects/${encodeURIComponent(projectId)}?cleanupUserData=1` : `projects/${encodeURIComponent(projectId)}`;