This commit is contained in:
@@ -35,7 +35,12 @@ func (h Controller) CDK(data *C2S_GET_GIFT_COMPLETE, player *logicplayer.Player)
|
||||
return nil, errorcode.ErrorCodes.ErrMolecularCodeGiftsGone
|
||||
}
|
||||
|
||||
reward, grantErr := playerservice.NewCdkService(data.Head.UserID).GrantConfigReward(uint32(r.ID))
|
||||
reward, grantErr := playerservice.NewCdkService(data.Head.UserID).GrantConfigReward(
|
||||
uint32(r.ID),
|
||||
func(itemID uint32, count int64) bool {
|
||||
return player.ItemAdd(int64(itemID), count)
|
||||
},
|
||||
)
|
||||
if grantErr != nil {
|
||||
return nil, errorcode.ErrorCodes.ErrSystemError
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user