REQ-3284: 推送声音

This commit is contained in:
yanglin 2024-12-02 20:14:12 +08:00
parent e57c335178
commit 59418d89c2
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ import java.util.Set;
public class PushChannelConfig {
private Set<PushChannel> pushChannels = Sets.newHashSet(
PushChannel.NIM, PushChannel.YOU_MENG);
private Set<PushChannel> pushChannelsIfAmbiguityPresent = pushChannels;
private Set<PushChannel> ambiguityPushChannels = pushChannels;
private PushDeviceVersion androidNimPush = new PushDeviceVersion();
private PushDeviceVersion iosNimPush = new PushDeviceVersion();

View File

@ -51,7 +51,7 @@ public class PushDeviceService {
List<ApkDeviceMaxCodeResp> devices) {
Supplier<Boolean> ambiguityPush = () -> {
Set<PushChannel> channels = cfg
.getPushChannels().getPushChannelsIfAmbiguityPresent();
.getPushChannels().getAmbiguityPushChannels();
return channels.contains(pushChannel);
};
if (CollectionUtils.isEmpty(devices))