feat(aigc): pass wechat login code to generator task requests

Refactor the shared wechat login code utility by moving it from the recharge service to a standalone module.
Add the sensitive request flag to the createAigcGeneratorTask POST API call.
Update the aigc detail and template use pages to fetch and pass the wechat login code when creating generation tasks.
Remove the redundant login code implementation from the recharge payment service.
This commit is contained in:
duanshuwen
2026-07-23 11:57:09 +08:00
parent 64c73ad6a6
commit 13d019b191
5 changed files with 39 additions and 21 deletions

View File

@@ -17,7 +17,11 @@ function getAigcGeneratorTaskDetail(args) {
}
function createAigcGeneratorTask(args) {
return request.post("/hotelBiz/aigcGeneratorTask/createAigcGeneratorTask", args);
return request.post(
"/hotelBiz/aigcGeneratorTask/createAigcGeneratorTask",
args,
{ sensitive: true }
);
}
function getCurrentCredit() {