彻底修复 lewan 自动发货问题-8-8-2

This commit is contained in:
yml2213
2026-08-08 23:43:29 +08:00
parent 6e41d7e0db
commit bcde47ef97
9 changed files with 93 additions and 15 deletions
+7 -1
View File
@@ -24,6 +24,12 @@ const claimWriteRateLimit = createRateLimitMiddleware({
max: 30,
key: getParamRateLimitKey('token'),
})
const claimRebindRateLimit = createRateLimitMiddleware({
scope: 'claim:rebind',
windowMs: 60_000,
max: 3,
key: getParamRateLimitKey('token'),
})
router.get(
'/:token',
@@ -66,7 +72,7 @@ router.post(
router.post(
'/:token/kuaishou-cloud/rebind-role',
claimWriteRateLimit,
claimRebindRateLimit,
createRouteHandler((req) => rebindKuaishouCloudClaimRole(req.params.token), {
successMessage: '角色换绑资源已准备完成',
errorMessage: '换绑角色失败',