opt: record user_id for reward verify

This commit is contained in:
RockYang
2023-07-22 08:42:30 +08:00
parent b73092eb64
commit dd71fe80a5
3 changed files with 5 additions and 1 deletions

View File

@@ -59,6 +59,7 @@ func (h *RewardHandler) Verify(c *gin.Context) {
// 更新核销状态
item.Status = true
item.UserId = user.Id
res = h.db.Updates(&item)
if res.Error != nil {
tx.Rollback()