REQ-2453: 小米、oppo推送渠道

This commit is contained in:
yanglin 2024-06-25 09:45:06 +08:00
parent 9364726a38
commit b54bc68d1a
2 changed files with 4 additions and 6 deletions

View File

@ -103,7 +103,7 @@ public class UpushService {
throws Exception {
AndroidCustomizedcast customizedcast;
if (msgFromClient.isForCmp()) {
if (msgFromClient.isForManager()) {
customizedcast = new AndroidCustomizedcast(cmpAndroidAppkey, cmpAndroidSecret);
} else {
if (message.getToId().startsWith("cmp")) {
@ -193,7 +193,7 @@ public class UpushService {
}
return null;
};
if (request.isForCmp()) {
if (request.isForManager()) {
return channelSelector.apply(cfg.getManagerIds());
} else {
return channelSelector.apply(cfg.getWorkerIds());

View File

@ -9,8 +9,6 @@ import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.util.Objects;
/**
* @author 王煜皓
* @date 2020/10/14 11:52
@ -77,11 +75,11 @@ public class MsgBody4Guest {
return "op".equals(pushType);
}
public boolean isForCmp() {
public boolean isForManager() {
return "cmp".equals(appClient);
}
public boolean isForCm() {
public boolean isForWorker() {
return "cm".equals(appClient);
}