diff --git a/rule/consume_integral_settlement.go b/rule/consume_integral_settlement.go index da7bfb2..e299f26 100644 --- a/rule/consume_integral_settlement.go +++ b/rule/consume_integral_settlement.go @@ -306,8 +306,8 @@ func Total(sess *xorm.Session, date, dayPayAmount string) error { data.AllAmount = AllAmount data.AllIntegral = AllIntegral data.AllIntegralAmount = AllIntegralAmount - update, err := sess.Where("id=?", data.Id).Update(&data) - if update == 0 || err != nil { + _, err := sess.Where("id=?", data.Id).Update(&data) + if err != nil { return errors.New("失败") } return nil