diff --git a/broker/config/wildfirechat.conf b/broker/config/wildfirechat.conf index 1d97cceb..0008826e 100755 --- a/broker/config/wildfirechat.conf +++ b/broker/config/wildfirechat.conf @@ -341,7 +341,7 @@ push.android.server.address http://localhost:8085/android/push ##注意回调是单线程回调,接收服务必须在同一内网,且异步处理快速返回,否则会有延迟问题!! push.ios.server.address http://localhost:8085/ios/push -##鸿蒙推送服务器地址,如果不配置会使用android的地址。 +##鸿蒙推送服务器地址 ##注意回调是单线程回调,接收服务必须在同一内网,且异步处理快速返回,否则会有延迟问题!! push.harmony.server.address http://localhost:8085/harmony/push diff --git a/broker/src/main/java/cn/wildfirechat/push/PushServer.java b/broker/src/main/java/cn/wildfirechat/push/PushServer.java index e003ab08..f06951c1 100644 --- a/broker/src/main/java/cn/wildfirechat/push/PushServer.java +++ b/broker/src/main/java/cn/wildfirechat/push/PushServer.java @@ -60,9 +60,6 @@ public class PushServer { this.androidPushServerUrl = config.getProperty(PUSH_ANDROID_SERVER_ADDRESS); this.iOSPushServerUrl = config.getProperty(PUSH_IOS_SERVER_ADDRESS); this.harmonyPushServerUrl = config.getProperty(PUSH_HARMONY_SERVER_ADDRESS); - if(StringUtil.isNullOrEmpty(harmonyPushServerUrl)) { - harmonyPushServerUrl = androidPushServerUrl; - } } public void pushMessage(PushMessage pushMessage, String deviceId, String pushContent) { diff --git a/distribution/src/main/resources/wildfirechat.conf b/distribution/src/main/resources/wildfirechat.conf index 2813f148..ede2ce2d 100755 --- a/distribution/src/main/resources/wildfirechat.conf +++ b/distribution/src/main/resources/wildfirechat.conf @@ -336,7 +336,7 @@ push.android.server.address http://localhost:8085/android/push ##注意回调是单线程回调,接收服务必须在同一内网,且异步处理快速返回,否则会有延迟问题!! push.ios.server.address http://localhost:8085/ios/push -##鸿蒙推送服务器地址,如果不配置会使用android的地址。 +##鸿蒙推送服务器地址 ##注意回调是单线程回调,接收服务必须在同一内网,且异步处理快速返回,否则会有延迟问题!! push.harmony.server.address http://localhost:8085/harmony/push