|
@@ -442,7 +442,7 @@ func DealUserConsumeIntegral(session *xorm.Session, subsidyWithUser *model.Subsi |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return err |
|
|
return err |
|
|
} |
|
|
} |
|
|
if updateAffected <= 0 { |
|
|
|
|
|
|
|
|
if updateAffected <= 0 && subsidyWithUser.BalanceAmount != balanceAmount1.String() { |
|
|
return errors.New("修改 subsidy_with_user 记录失败") |
|
|
return errors.New("修改 subsidy_with_user 记录失败") |
|
|
} |
|
|
} |
|
|
if isEnd == 1 { |
|
|
if isEnd == 1 { |
|
@@ -527,7 +527,7 @@ func DealUserExperienceIntegral(session *xorm.Session, subsidyWithUser *model.Su |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return err |
|
|
return err |
|
|
} |
|
|
} |
|
|
if updateAffected <= 0 { |
|
|
|
|
|
|
|
|
if updateAffected <= 0 && subsidyWithUser.BalanceAmount != balanceAmount1.String() { |
|
|
return errors.New("修改 subsidy_with_user 记录失败") |
|
|
return errors.New("修改 subsidy_with_user 记录失败") |
|
|
} |
|
|
} |
|
|
if isEnd == 1 { |
|
|
if isEnd == 1 { |
|
@@ -604,7 +604,7 @@ func DealUserStoreIntegral(session *xorm.Session, subsidyWithUser *model.Subsidy |
|
|
if err != nil { |
|
|
if err != nil { |
|
|
return err |
|
|
return err |
|
|
} |
|
|
} |
|
|
if updateAffected <= 0 { |
|
|
|
|
|
|
|
|
if updateAffected <= 0 && subsidyWithUser.BalanceAmount != balanceAmount.String() { |
|
|
return errors.New("修改 subsidy_with_user 记录失败") |
|
|
return errors.New("修改 subsidy_with_user 记录失败") |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|