diff --git a/utility/gamelife/gamelife.go b/utility/gamelife/gamelife.go index 63eb7a2..6232eb3 100644 --- a/utility/gamelife/gamelife.go +++ b/utility/gamelife/gamelife.go @@ -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("获取游戏编码失败") }