fix(order): correct renewal traffic reset logic (#37)
This commit is contained in:
parent
be7cdcd4a6
commit
d26bc7f40b
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,3 +14,4 @@
|
||||
node_modules
|
||||
package-lock.json
|
||||
package.json
|
||||
/bin
|
||||
@ -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
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user