Compare commits
No commits in common. "6e55cfcf898864d9d35ba76e502ba979b80a95ca" and "8018d286aa591bf0f0868d23387a8dc4dc47d772" have entirely different histories.
6e55cfcf89
...
8018d286aa
@ -486,7 +486,7 @@ func BundleActivate(ids []uint32) error {
|
||||
}
|
||||
balance.ExpiredAt = balance.ExpiredAt.Add(time.Since(balance.StartAt))
|
||||
balance.StartAt = time.Now()
|
||||
if err := tx.Model(&model.BundleBalance{}).Where("id = ?", balance.ID).Save(balance).Error; err != nil {
|
||||
if err := tx.Model(&model.BundleBalance{}).Save(balance).Error; err != nil {
|
||||
return err
|
||||
}
|
||||
return tx.Model(&model.BundleActivate{}).Where("user_id = ?", v).Create(&model.BundleActivate{UserId: int(v), Activate: 2}).Error
|
||||
|
Loading…
Reference in New Issue
Block a user