Authored by tanling

支持多小程序

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