From b13eb1163318652fb1ac4f7113187cfeb7a51d02 Mon Sep 17 00:00:00 2001 From: zhuhao <979263092@qq.com> Date: Mon, 6 Jan 2025 14:51:20 +0800 Subject: [PATCH] =?UTF-8?q?=E7=89=88=E6=9C=AC=E5=8D=87=E7=BA=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron-builder-yc.yml | 4 ++-- package.json | 2 +- src/renderer/src/utils/ppt-request.js | 14 +++++++++++++- 3 files changed, 16 insertions(+), 4 deletions(-) diff --git a/electron-builder-yc.yml b/electron-builder-yc.yml index 385b578..fd34471 100644 --- a/electron-builder-yc.yml +++ b/electron-builder-yc.yml @@ -1,10 +1,10 @@ appId: com.electron.app.yc -productName: 文枢课堂 +productName: 永川中小学AI教学系统 directories: output: dist buildResources: build win: - executableName: 文枢课堂 + executableName: 永川中小学AI教学系统 icon: resources/yc-logo.png files: - '!**/.vscode/*' diff --git a/package.json b/package.json index f3599c1..7fb23eb 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "aix-win-ws", - "version": "2.5.11", + "version": "2.5.14", "description": "", "main": "./out/main/index.js", "author": "上海交大重庆人工智能研究院", diff --git a/src/renderer/src/utils/ppt-request.js b/src/renderer/src/utils/ppt-request.js index 7d49a50..f080ece 100644 --- a/src/renderer/src/utils/ppt-request.js +++ b/src/renderer/src/utils/ppt-request.js @@ -106,6 +106,18 @@ const getBackGroundV2 = async () => { throw error; } }; + +const createOutlineV2 = async (data) => { + try { + const response = await req("/api/aipptV2/createOutlineV2", "POST", data); + console.log("createOutline response:", response); + + return response.data; + } catch (error) { + console.error("请求失败:", error); + throw error; + } +}; const createPPTV2 = async (data) => { try { const response = await req("/api/aipptV2/createV2", "POST", data); @@ -127,4 +139,4 @@ const getProgressV2 = async (id) => { } }; -export { createOutline, getBackGround, createPPT, getProgress, getBackGroundV2, createPPTV2, getProgressV2, createByOutline }; +export { createOutline, getBackGround, createPPT, getProgress, getBackGroundV2, createOutlineV2, createPPTV2, getProgressV2, createByOutline };