Merge branch 'aigc' of https://git.nianxx.cn/zoujing/YGChatCS into home3.0

This commit is contained in:
2026-07-23 15:07:48 +08:00
5 changed files with 39 additions and 21 deletions

View File

@@ -46,6 +46,7 @@ import { onLoad, onShow } from "@dcloudio/uni-app";
import Privacy from "@/components/Privacy/index.vue";
import AigcTopBar from "@/pages-aigc/components/AigcTopBar/index.vue";
import { useCurrentCredit } from "@/pages-aigc/hooks/useCurrentCredit.js";
import { getWechatLoginCode } from "@/pages-aigc/services/wechatLogin.js";
import {
createAigcGeneratorTask,
getAigcTemplateItemList,
@@ -356,9 +357,11 @@ const handleGenerate = async () => {
});
try {
const wxLoginCode = await getWechatLoginCode();
const res = await createAigcGeneratorTask({
templateItemId,
imageUrlList: [uploadedImageUrl.value],
wxLoginCode,
});
const taskId = String(res?.data || "").trim();