From ea00e1e361ed3a01cfdd9b9c3217583938590f0c Mon Sep 17 00:00:00 2001 From: lzh <1625167628@qq.com> Date: Fri, 10 Oct 2025 17:03:05 +0800 Subject: [PATCH] 1 --- internal/dao/bundleExtend.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/dao/bundleExtend.go b/internal/dao/bundleExtend.go index 37687cb..4f84bcd 100644 --- a/internal/dao/bundleExtend.go +++ b/internal/dao/bundleExtend.go @@ -228,14 +228,14 @@ func AddBundleBalanceByUserId(data model.BundleBalanceUsePo) error { continue } } - if oldData.MonthlyLimitVideoExpireNumber > oldData.MonthlyLimitVideoExpireConsumptionNumber { // 当月可使用的不过期的限制类型充足 + if oldData.MonthlyLimitVideoNumber > oldData.MonthlyLimitVideoConsumptionNumber { // 当月可使用的不过期的限制类型充足 if oldData.BundleLimitVideoConsumptionNumber < oldData.BundleLimitVideoNumber { // 套餐内不过期的限制类型视频充足 - oldData.MonthlyLimitVideoExpireConsumptionNumber++ + oldData.MonthlyLimitVideoConsumptionNumber++ oldData.BundleLimitVideoConsumptionNumber++ continue } if oldData.IncreaseLimitVideoConsumptionNumber < oldData.IncreaseLimitVideoNumber { // 增值服务不过期的限制类型视频充足 - oldData.MonthlyLimitVideoExpireConsumptionNumber++ + oldData.MonthlyLimitVideoConsumptionNumber++ oldData.IncreaseLimitVideoConsumptionNumber++ continue }