更新项目配置,调整 .next 目录的清理脚本以支持多个子目录的删除,优化提现功能的环境变量配置,确保与现有支付配置一致。同时,增强 API 日志记录以便于调试,更新文档以反映新的环境变量使用方式,提升系统的可维护性和用户体验。

This commit is contained in:
2026-02-07 15:30:31 +08:00
parent 8e67eb5d62
commit de10a203b3
8 changed files with 130 additions and 32 deletions

View File

@@ -103,6 +103,7 @@ export async function PUT(request: Request) {
if (action === 'approve') {
console.log(STEP, '3. 发起转账(用户确认模式)')
console.log(STEP, '审核传入: id=', id, 'userId=', userId, 'amount=', amount, 'openid=', openid ? `${openid.slice(0, 8)}...` : '(空)')
if (!openid) {
return NextResponse.json({
success: false,
@@ -110,6 +111,7 @@ export async function PUT(request: Request) {
}, { status: 400 })
}
const amountFen = Math.round(amount * 100)
console.log(STEP, '调用 createTransferUserConfirm: outBillNo=', id, 'amountFen=', amountFen, 'openid 长度=', openid.length)
const transferResult = await createTransferUserConfirm({
openid,
amountFen,