diff --git a/consume/zhios_order_total_second.go b/consume/zhios_order_total_second.go index 03a0fcc..32db18d 100644 --- a/consume/zhios_order_total_second.go +++ b/consume/zhios_order_total_second.go @@ -154,7 +154,7 @@ func handleZhiosOrderTotalSecond(msg []byte) error { sess.Where("uid=? and date=?", v.Uid, nowDay).Get(&userStatistics1) if userStatistics1.Id == 0 { userStatistics1 = model.UserDayAmount{ - Date: utils.StrToInt(now), + Date: utils.StrToInt(nowDay), Uid: v.Uid, } has, err := sess.Insert(&userStatistics1)