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
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -13,4 +13,5 @@
*.key
node_modules
package-lock.json
package.json
package.json
/bin
+1 -1
View File
@@ -369,7 +369,7 @@ func (l *ActivateOrderLogic) Renewal(ctx context.Context, orderInfo *order.Order
}
// Check whether traffic reset on renewal is enabled
if !*sub.RenewalReset {
if *sub.RenewalReset {
userSub.Download = 0
userSub.Upload = 0
}