彻底修复 lewan 自动发货问题-8-8-2
This commit is contained in:
@@ -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: '换绑角色失败',
|
||||
|
||||
Reference in New Issue
Block a user