MatchMaster/server/laf-cloud/functions/goldMiner/merchantNotify.ts
2026-09-30 22:30:22 +08:00

8 lines
434 B
TypeScript

export default async function (ctx: FunctionContext) {
// Without API v3 decryption, notifications cannot identify the paid order.
// Acknowledge receipt only; authenticated queries, login recovery and jobs confirm payment with WeChat.
// Never trust plaintext payment fields supplied by the caller.
ctx.response?.status(200);
return { code: "SUCCESS", message: "通知已接收,支付结果由服务端查单确认" };
}