refactor(aigc): update aigc consent dialog and apis

- set developVersion to false for production build
- format api request calls for consistent readability
- simplify consent dialog template and remove unused styles
- update default consent text and add ruleClick emit event
- add new getUserAgreement api endpoint and export it
This commit is contained in:
duanshuwen
2026-07-23 21:04:54 +08:00
parent d71bda5e0b
commit f71f28fe99
4 changed files with 29 additions and 52 deletions

View File

@@ -9,18 +9,24 @@ function getAigcTemplateItemList(args) {
}
function getAigcGeneratorTaskList(args) {
return request.post("/hotelBiz/aigcGeneratorTask/aigcGeneratorTaskList", args);
return request.post(
"/hotelBiz/aigcGeneratorTask/aigcGeneratorTaskList",
args,
);
}
function getAigcGeneratorTaskDetail(args) {
return request.post("/hotelBiz/aigcGeneratorTask/aigcGeneratorTaskDetail", args);
return request.post(
"/hotelBiz/aigcGeneratorTask/aigcGeneratorTaskDetail",
args,
);
}
function createAigcGeneratorTask(args) {
return request.post(
"/hotelBiz/aigcGeneratorTask/createAigcGeneratorTask",
args,
{ sensitive: true }
{ sensitive: true },
);
}
@@ -36,12 +42,18 @@ function getPointsTopUpAgreement() {
return request.get("/hotelBiz/mainScene/pointsTopUpAgreement", {});
}
function getUserAgreement() {
return request.get("/hotelBiz/mainScene/userAgreement", {});
}
function createAigcGeneratorTaskShare(args) {
return request.post("/hotelBiz/aigcGeneratorTask/share/create", args);
}
function getAigcGeneratorTaskShareDetail(args) {
return request.post("/hotelBiz/aigcGeneratorTask/share/detail", args, { noToken: true });
return request.post("/hotelBiz/aigcGeneratorTask/share/detail", args, {
noToken: true,
});
}
export {
@@ -53,6 +65,7 @@ export {
getCurrentCredit,
getCreditLedgerPage,
getPointsTopUpAgreement,
getUserAgreement,
createAigcGeneratorTaskShare,
getAigcGeneratorTaskShareDetail,
};

View File

@@ -7,7 +7,7 @@ import { getServiceUrl } from "../api/GetServiceUrlApi";
const versionValue = "1.1.3";
/// 是否是测试版本, 测试版本为true 发布版本为false
const developVersion = true;
const developVersion = false;
// 获取服务地址
const getEvnUrl = async () => {