fix(order): correct renewal traffic reset logic (#37)

This commit is contained in:
sky-line-1 2025-07-01 23:07:27 +08:00 committed by GitHub
parent be7cdcd4a6
commit d26bc7f40b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

3
.gitignore vendored
View File

@ -13,4 +13,5 @@
*.key *.key
node_modules node_modules
package-lock.json package-lock.json
package.json package.json
/bin

View File

@ -369,7 +369,7 @@ func (l *ActivateOrderLogic) Renewal(ctx context.Context, orderInfo *order.Order
} }
// Check whether traffic reset on renewal is enabled // Check whether traffic reset on renewal is enabled
if !*sub.RenewalReset { if *sub.RenewalReset {
userSub.Download = 0 userSub.Download = 0
userSub.Upload = 0 userSub.Upload = 0
} }