Fix CDK type checks and server naming ownership update
This commit is contained in:
@@ -28,6 +28,9 @@ func (h Controller) CDK(data *C2S_GET_GIFT_COMPLETE, player *logicplayer.Player)
|
||||
if r == nil {
|
||||
return nil, errorcode.ErrorCodes.ErrMolecularCodeNotExists
|
||||
}
|
||||
if r.Type != configservice.CDKTypeReward {
|
||||
return nil, errorcode.ErrorCodes.ErrMolecularCodeNotExists
|
||||
}
|
||||
if r.BindUserId != 0 && r.BindUserId != data.Head.UserID {
|
||||
return nil, errorcode.ErrorCodes.ErrMolecularCodeFrozen
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user