Fix CDK type checks and server naming ownership update

This commit is contained in:
昔念
2026-04-21 00:39:12 +08:00
parent d517c822ef
commit 4b42a64da0
4 changed files with 28 additions and 2 deletions

View File

@@ -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
}