完善支付宝提现收款码

This commit is contained in:
yml2213
2026-08-21 00:00:05 +08:00
parent 81a412323b
commit 361b84931f
14 changed files with 362 additions and 35 deletions
+14
View File
@@ -7,6 +7,7 @@ import {
changeWorkerPassword,
createWorkerRechargeRequest,
createWorkerWithdrawalAccount,
saveWorkerAlipayWithdrawalQrCode,
createWorkerWithdrawRequest,
getWorkerProfile,
getWorkerSessionSummary,
@@ -326,6 +327,19 @@ router.post(
),
)
router.put(
'/profile/withdrawal-account/alipay-qr-code',
requireActiveWorker,
createRouteHandler(
(req) => saveWorkerAlipayWithdrawalQrCode(req.body || {}, getRequiredWorkerSession(req)),
{
successMessage: '支付宝收款二维码已保存',
errorMessage: '保存支付宝收款二维码失败',
scope: '[worker/profile/withdrawal-account/alipay-qr-code]',
},
),
)
router.post(
'/profile/withdraw-requests',
requireActiveWorker,