调整任务存储,任务查询
This commit is contained in:
@ -353,7 +353,7 @@ func (s *sReward) GetLift(ctx context.Context, in *model.GetRewardIn) (out *mode
|
||||
// 判断奖励类型
|
||||
if in.Source == 1 {
|
||||
// 系统奖励处理
|
||||
if in.RewradTypeId != 16 {
|
||||
if in.RewradTypeId == 16 {
|
||||
// 需要大区角色
|
||||
giftParam.AreaId = in.AreaId
|
||||
giftParam.Gid = in.GameId
|
||||
@ -380,6 +380,10 @@ func (s *sReward) GetLift(ctx context.Context, in *model.GetRewardIn) (out *mode
|
||||
return nil, ecode.Fail.Sub("数据类型转换失败")
|
||||
}
|
||||
|
||||
if len(result.GiftItem) == 0 {
|
||||
return nil, ecode.Fail.Sub("奖励领取异常")
|
||||
}
|
||||
|
||||
// 存储数据库记录
|
||||
if err = dao.RewardWaters.Transaction(ctx, func(ctx context.Context, tx gdb.TX) (err error) {
|
||||
for _, item := range result.GiftItem {
|
||||
|
||||
Reference in New Issue
Block a user