钻石兑换bug
This commit is contained in:
@@ -117,7 +117,7 @@ public class GoldExchangeDiamondService {
|
||||
if (Constant.ClanMode.FAMILY.equals(partitionInfo.getClanMode())) {
|
||||
if (CollectionUtils.isNotEmpty(exchangeDiamondConfigDto.getBlockClanIds())) {
|
||||
FamilyMember vaildFamilyMemberByUid = familyMemberService.getVaildFamilyMemberByUid(uid);
|
||||
if (exchangeDiamondConfigDto.getBlockClanIds().contains(vaildFamilyMemberByUid.getFamilyId().longValue())) {
|
||||
if (vaildFamilyMemberByUid != null && exchangeDiamondConfigDto.getBlockClanIds().contains(vaildFamilyMemberByUid.getFamilyId().longValue())) {
|
||||
throw new ServiceException(BusiStatus.GOLD_EXCHANGE_DIAMOND_CLOSE);
|
||||
}
|
||||
}
|
||||
@@ -125,7 +125,7 @@ public class GoldExchangeDiamondService {
|
||||
} else if (Constant.ClanMode.GUILD.equals(partitionInfo.getClanMode())) {
|
||||
if (CollectionUtils.isNotEmpty(exchangeDiamondConfigDto.getBlockClanIds())) {
|
||||
GuildMember vaildGuildMemberByUid = guildMemberService.getVaildGuildMemberByUid(uid);
|
||||
if (exchangeDiamondConfigDto.getBlockClanIds().contains(vaildGuildMemberByUid.getGuildId().longValue())) {
|
||||
if (vaildGuildMemberByUid != null && exchangeDiamondConfigDto.getBlockClanIds().contains(vaildGuildMemberByUid.getGuildId().longValue())) {
|
||||
throw new ServiceException(BusiStatus.GOLD_EXCHANGE_DIAMOND_CLOSE);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user