diff --git a/common/src/main/java/com/yunbao/common/CommonAppContext.java b/common/src/main/java/com/yunbao/common/CommonAppContext.java index 5d1e34975..62a44695a 100644 --- a/common/src/main/java/com/yunbao/common/CommonAppContext.java +++ b/common/src/main/java/com/yunbao/common/CommonAppContext.java @@ -19,6 +19,7 @@ import com.yunbao.common.utils.L; import java.util.Locale; +import io.rong.imlib.RongIMClient; import io.rong.push.RongPushClient; import io.rong.push.pushconfig.PushConfig; import me.leolin.shortcutbadger.ShortcutBadger; @@ -56,6 +57,8 @@ public class CommonAppContext extends MultiDexApplication { // .enableHWPush(true) // .build(); // RongPushClient.setPushConfig(config); //将推送相关配置设置到 SDK + //设置新加坡融云服务器 有时候国内收不到推送是因为这个 + RongIMClient.setServerInfo("navsg01.cn.ronghub.com", null); //谷歌推送 PushConfig gconfig = new PushConfig.Builder() .enableFCM(true) diff --git a/common/src/main/java/com/yunbao/common/manager/imrongcloud/RongcloudIMManager.java b/common/src/main/java/com/yunbao/common/manager/imrongcloud/RongcloudIMManager.java index d7f055a1e..4494d6149 100644 --- a/common/src/main/java/com/yunbao/common/manager/imrongcloud/RongcloudIMManager.java +++ b/common/src/main/java/com/yunbao/common/manager/imrongcloud/RongcloudIMManager.java @@ -32,9 +32,9 @@ import static com.yunbao.common.CommonAppContext.isReady; */ public class RongcloudIMManager { //融云开发者平台注册app唯一识别符 -// public static final String RONG_IM_KEY = "uwd1c0sxu1p71"; + public static final String RONG_IM_KEY = "uwd1c0sxu1p71"; //测试环境 - public static final String RONG_IM_KEY = "pvxdm17jpd3hr"; +// public static final String RONG_IM_KEY = "pvxdm17jpd3hr"; private static final String CLASSNAME = "RongcloudIMManager"; diff --git a/config.gradle b/config.gradle index cf3f0a090..7d7250467 100644 --- a/config.gradle +++ b/config.gradle @@ -10,9 +10,9 @@ ext { manifestPlaceholders = [ //正式 -// serverHost : "https://napi.yaoulive.com", + serverHost : "https://napi.yaoulive.com", //測試 - serverHost : "https://ceshi.yaoulive.com", +// serverHost : "https://ceshi.yaoulive.com", //腾讯地图 txMapAppKey : "EOZBZ-ASLCU-4XPV3-BDCHZ-4E3Q7-H4BWB",