Skip to content

Commit

Permalink
如果没有配置鸿蒙推送地址,不应该回落到Android,避免对android造成影响
Browse files Browse the repository at this point in the history
  • Loading branch information
heavyrian2012 committed Sep 18, 2024
1 parent f1298a5 commit bf22b36
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion broker/config/wildfirechat.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
3 changes: 0 additions & 3 deletions broker/src/main/java/cn/wildfirechat/push/PushServer.java
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,6 @@ public void init(IConfig config, ISessionsStore sessionsStore) {
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) {
Expand Down
2 changes: 1 addition & 1 deletion distribution/src/main/resources/wildfirechat.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit bf22b36

Please sign in to comment.