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