修改游戏人生请求参数错误
This commit is contained in:
@ -315,7 +315,7 @@ func (s *gamelifeClient) RequestActivity(ctx context.Context, in *model.QQNetbar
|
|||||||
return &result, nil
|
return &result, nil
|
||||||
|
|
||||||
case consts.GetTaskList:
|
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 {
|
if err != nil {
|
||||||
return nil, ecode.Fail.Sub("获取游戏编码失败")
|
return nil, ecode.Fail.Sub("获取游戏编码失败")
|
||||||
}
|
}
|
||||||
@ -349,7 +349,7 @@ func (s *gamelifeClient) RequestActivity(ctx context.Context, in *model.QQNetbar
|
|||||||
|
|
||||||
return &result.RoleList, nil
|
return &result.RoleList, nil
|
||||||
case consts.GetGift:
|
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 {
|
if err != nil {
|
||||||
return nil, ecode.Fail.Sub("获取游戏编码失败")
|
return nil, ecode.Fail.Sub("获取游戏编码失败")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user