|
|
@@ -364,8 +364,10 @@ func DealUserConsumeIntegral(session *xorm.Session, subsidyWithUser *model.Subsi |
|
|
|
balanceAmount := subsidyWithUser.LeaveDay |
|
|
|
afterAmount := balanceAmount - 1 |
|
|
|
isEnd := 0 |
|
|
|
if afterAmount <= 0 { |
|
|
|
if afterAmount < 0 { |
|
|
|
isEnd = 1 |
|
|
|
} |
|
|
|
if afterAmount <= 0 { |
|
|
|
afterAmount = 0 |
|
|
|
subsidyWithUser.State = 3 //补贴完 |
|
|
|
} |
|
|
@@ -441,8 +443,10 @@ func DealUserExperienceIntegral(session *xorm.Session, subsidyWithUser *model.Su |
|
|
|
balanceAmount := subsidyWithUser.LeaveDay |
|
|
|
afterAmount := balanceAmount - 1 |
|
|
|
isEnd := 0 |
|
|
|
if afterAmount <= 0 { |
|
|
|
if afterAmount < 0 { |
|
|
|
isEnd = 1 |
|
|
|
} |
|
|
|
if afterAmount <= 0 { |
|
|
|
afterAmount = 0 |
|
|
|
subsidyWithUser.State = 3 //补贴完 |
|
|
|
} |
|
|
|