调整回调,奖励领取
This commit is contained in:
@ -13,6 +13,7 @@ func (c *ControllerV1) GetLift(ctx context.Context, req *v1.GetLiftReq) (res *v1
|
||||
userId := g.RequestFromCtx(ctx).Get("id")
|
||||
out, err := service.Reward().GetLift(ctx, &model.GetRewardIn{
|
||||
GameId: req.GameId,
|
||||
GameCode: req.GameCode,
|
||||
TaskId: req.TaskId,
|
||||
PopenId: req.PopenId,
|
||||
RewradTypeId: req.RewardType,
|
||||
@ -23,12 +24,14 @@ func (c *ControllerV1) GetLift(ctx context.Context, req *v1.GetLiftReq) (res *v1
|
||||
UserTaskId: req.UserTaskId,
|
||||
UserId: userId.Int(),
|
||||
RewardId: req.RewardId,
|
||||
Id: int(req.Id),
|
||||
})
|
||||
|
||||
if err != nil {
|
||||
return nil, err
|
||||
}
|
||||
return &v1.GetLiftRes{
|
||||
List: out.List,
|
||||
Result: out.Result,
|
||||
Url: out.Url,
|
||||
}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user