Commit 73636485 authored by Liang Ding's avatar Liang Ding

🎨 使用 IP 时不同步 B3

parent 66b5b4ef
...@@ -95,7 +95,7 @@ public class B3ArticleSender extends AbstractEventListener<JSONObject> { ...@@ -95,7 +95,7 @@ public class B3ArticleSender extends AbstractEventListener<JSONObject> {
return; return;
} }
if (Latkes.getServePath().contains("localhost") || Strings.isIPv4(Latkes.getServePath())) { if (Latkes.getServePath().contains("localhost") || Strings.isIPv4(Latkes.getServerHost())) {
LOGGER.log(Level.INFO, "Solo is running on local server, ignored push article [title={0}] to Rhy", title); LOGGER.log(Level.INFO, "Solo is running on local server, ignored push article [title={0}] to Rhy", title);
return; return;
......
...@@ -88,7 +88,7 @@ public class B3CommentSender extends AbstractEventListener<JSONObject> { ...@@ -88,7 +88,7 @@ public class B3CommentSender extends AbstractEventListener<JSONObject> {
return; return;
} }
if (Latkes.getServePath().contains("localhost") || Strings.isIPv4(Latkes.getServePath())) { if (Latkes.getServePath().contains("localhost") || Strings.isIPv4(Latkes.getServerHost())) {
LOGGER.log(Level.TRACE, "Solo runs on local server, so should not send this comment[id={0}] to Symphony", LOGGER.log(Level.TRACE, "Solo runs on local server, so should not send this comment[id={0}] to Symphony",
originalComment.getString(Keys.OBJECT_ID)); originalComment.getString(Keys.OBJECT_ID));
return; return;
......
...@@ -162,6 +162,10 @@ public class ExportService { ...@@ -162,6 +162,10 @@ public class ExportService {
return; return;
} }
if (Latkes.getServePath().contains("localhost") || Strings.isIPv4(Latkes.getServerHost())) {
return;
}
if (Latkes.RuntimeMode.PRODUCTION != Latkes.getRuntimeMode()) { if (Latkes.RuntimeMode.PRODUCTION != Latkes.getRuntimeMode()) {
return; return;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment