Authored by tanling

支持多小程序

... ... @@ -13,7 +13,7 @@
<artifactId>yoho-message-sdk</artifactId>
<packaging>jar</packaging>
<name>yoho-message-sdk</name>
<version>1.1.2-SNAPSHOT</version>
<version>1.1.1-SNAPSHOT</version>
<dependencies>
<dependency>
... ...
... ... @@ -24,6 +24,13 @@ public abstract class AbstractSendMessage {
public MessageCenterCommonEvent genMessageCenterCommonEvent(String sendScene, String sendSceneKey, int miniappType, String uid) {
List<String> uids = Arrays.asList(uid);
// 原来用 miniappFlg = 1 or 0 来标识是否是小程序
// 为了支持多小程序,miniappType (miniappFlg=1 实际上是 miniappType=0的小程序)
// 其他的 miniappFlg = miniappType
if (miniappType == 1){
miniappType = 0;
}
return new MessageCenterCommonEvent(sendScene, sendSceneKey, miniappType, uids);
}
... ...