修改游戏人生请求参数错误

This commit is contained in:
2025-06-23 12:01:16 +08:00
parent 03c7939a81
commit bbd3968429

View File

@ -315,7 +315,7 @@ func (s *gamelifeClient) RequestActivity(ctx context.Context, in *model.QQNetbar
return &result, nil
case consts.GetTaskList:
value, err := dao.Games.Ctx(ctx).Where(do.Games{GameId: in.QueryUserGoodsDetailParam.Gid}).Fields(dao.Games.Columns().GameCode).Value()
value, err := dao.Games.Ctx(ctx).Where(do.Games{GameId: in.TaskParam.Gid}).Fields(dao.Games.Columns().GameCode).Value()
if err != nil {
return nil, ecode.Fail.Sub("获取游戏编码失败")
}
@ -349,7 +349,7 @@ func (s *gamelifeClient) RequestActivity(ctx context.Context, in *model.QQNetbar
return &result.RoleList, nil
case consts.GetGift:
value, err := dao.Games.Ctx(ctx).Where(do.Games{GameId: in.QueryUserGoodsDetailParam.Gid}).Fields(dao.Games.Columns().GameCode).Value()
value, err := dao.Games.Ctx(ctx).Where(do.Games{GameId: in.GiftParam.Gid}).Fields(dao.Games.Columns().GameCode).Value()
if err != nil {
return nil, ecode.Fail.Sub("获取游戏编码失败")
}