用户任务记录新增字段记录领取任务账号 id

This commit is contained in:
2025-07-10 15:26:07 +08:00
parent 4b3dcac324
commit b2df628923
9 changed files with 19 additions and 6 deletions

View File

@ -170,7 +170,7 @@ func (s *gamelifeClient) GetUserKeyIV(ctx context.Context, popenID string) (*mod
Token: result.Key,
}
cacheKey := fmt.Sprintf(consts.GameLifeUserKey, popenID)
if err := g.Redis().SetEX(ctx, cacheKey, cache, int64(consts.GameLifeUserExpire+grand.Intn(1000))); err != nil {
if err := g.Redis().SetEX(ctx, cacheKey, cache, int64(consts.GameLifeUserExpire-grand.Intn(1000))); err != nil {
return nil, ecode.Fail.Sub("设置用户信息失败")
}