|
@@ -154,7 +154,7 @@ func handleZhiosOrderTotalSecond(msg []byte) error { |
|
|
sess.Where("uid=? and date=?", v.Uid, nowDay).Get(&userStatistics1) |
|
|
sess.Where("uid=? and date=?", v.Uid, nowDay).Get(&userStatistics1) |
|
|
if userStatistics1.Id == 0 { |
|
|
if userStatistics1.Id == 0 { |
|
|
userStatistics1 = model.UserDayAmount{ |
|
|
userStatistics1 = model.UserDayAmount{ |
|
|
Date: utils.StrToInt(now), |
|
|
|
|
|
|
|
|
Date: utils.StrToInt(nowDay), |
|
|
Uid: v.Uid, |
|
|
Uid: v.Uid, |
|
|
} |
|
|
} |
|
|
has, err := sess.Insert(&userStatistics1) |
|
|
has, err := sess.Insert(&userStatistics1) |
|
|