feat: REQ-2129 发送友盟消息时,带上personId
This commit is contained in:
parent
31b22bf0c9
commit
18e21a52e5
@ -3,16 +3,11 @@ package cn.axzo.msg.center.inside.notices.service.umeng;
|
||||
|
||||
import cn.axzo.msg.center.api.request.MsgBody4Guest;
|
||||
import cn.axzo.msg.center.api.response.Message;
|
||||
import cn.axzo.msg.center.inside.notices.service.umeng.android.AndroidBroadcast;
|
||||
import cn.axzo.msg.center.inside.notices.service.umeng.android.AndroidCustomizedcast;
|
||||
import cn.axzo.msg.center.inside.notices.service.umeng.android.AndroidGroupcast;
|
||||
import cn.axzo.msg.center.inside.notices.service.umeng.android.AndroidUnicast;
|
||||
import cn.axzo.msg.center.inside.notices.service.umeng.ios.IOSCustomizedcast;
|
||||
import com.google.common.collect.Maps;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.json.JSONArray;
|
||||
import org.json.JSONObject;
|
||||
import org.springframework.beans.factory.annotation.Value;
|
||||
import org.springframework.cloud.context.config.annotation.RefreshScope;
|
||||
import org.springframework.stereotype.Component;
|
||||
@ -130,6 +125,11 @@ public class UpushService {
|
||||
}
|
||||
|
||||
}
|
||||
if(message.getToId().startsWith("not_identity")) {
|
||||
customizedcast.setExtraField("personId", msgFromClient.getM3());
|
||||
} else {
|
||||
customizedcast.setExtraField("personId", message.getToId());
|
||||
}
|
||||
// customizedcast.setAlias(message.getToId(), "pcode");
|
||||
// customizedcast.set
|
||||
customizedcast.setTicker("安心筑通知");
|
||||
@ -204,7 +204,11 @@ public class UpushService {
|
||||
customizedcast.setAlias(message.getToId(), "pcode");
|
||||
}
|
||||
}
|
||||
|
||||
if(message.getToId().startsWith("not_identity")) {
|
||||
customizedcast.setCustomizedField("personId", msgFromClient.getM3());
|
||||
} else {
|
||||
customizedcast.setCustomizedField("personId", message.getToId());
|
||||
}
|
||||
//厂商通道相关参数
|
||||
customizedcast.setCustomizedField("extra", message.getExtra());
|
||||
/* customizedcast.setCustomizedField("fromType", String.valueOf(message.getFromType()));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user