Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
solo
Commits
a0d6bf63
Commit
a0d6bf63
authored
Jun 13, 2013
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
同步文章、广播 clientHost 字段值使用 Serve Path
parent
ee6f3370
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
core/src/main/java/org/b3log/solo/event/rhythm/ArticleSender.java
.../main/java/org/b3log/solo/event/rhythm/ArticleSender.java
+2
-2
core/src/main/java/org/b3log/solo/plugin/broadcast/ChanceProcessor.java
...java/org/b3log/solo/plugin/broadcast/ChanceProcessor.java
+2
-2
No files found.
core/src/main/java/org/b3log/solo/event/rhythm/ArticleSender.java
View file @
a0d6bf63
...
@@ -48,7 +48,7 @@ import org.json.JSONObject;
...
@@ -48,7 +48,7 @@ import org.json.JSONObject;
*
*
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @author ArmstrongCN
* @author ArmstrongCN
* @version 1.0.2.
6, Apr 16
, 2013
* @version 1.0.2.
7, Jun 13
, 2013
* @since 0.3.1
* @since 0.3.1
*/
*/
public
final
class
ArticleSender
extends
AbstractEventListener
<
JSONObject
>
{
public
final
class
ArticleSender
extends
AbstractEventListener
<
JSONObject
>
{
...
@@ -132,7 +132,7 @@ public final class ArticleSender extends AbstractEventListener<JSONObject> {
...
@@ -132,7 +132,7 @@ public final class ArticleSender extends AbstractEventListener<JSONObject> {
requestJSONObject
.
put
(
Common
.
BLOG_VERSION
,
SoloServletListener
.
VERSION
);
requestJSONObject
.
put
(
Common
.
BLOG_VERSION
,
SoloServletListener
.
VERSION
);
requestJSONObject
.
put
(
Common
.
BLOG
,
"B3log Solo"
);
requestJSONObject
.
put
(
Common
.
BLOG
,
"B3log Solo"
);
requestJSONObject
.
put
(
Preference
.
BLOG_TITLE
,
preference
.
getString
(
Preference
.
BLOG_TITLE
));
requestJSONObject
.
put
(
Preference
.
BLOG_TITLE
,
preference
.
getString
(
Preference
.
BLOG_TITLE
));
requestJSONObject
.
put
(
"blogHost"
,
Latkes
.
getServe
rHost
()
+
":"
+
Latkes
.
getServerPort
());
requestJSONObject
.
put
(
"blogHost"
,
Latkes
.
getServe
Path
());
requestJSONObject
.
put
(
"userB3Key"
,
preference
.
optString
(
Preference
.
KEY_OF_SOLO
));
requestJSONObject
.
put
(
"userB3Key"
,
preference
.
optString
(
Preference
.
KEY_OF_SOLO
));
requestJSONObject
.
put
(
"clientAdminEmail"
,
preference
.
optString
(
Preference
.
ADMIN_EMAIL
));
requestJSONObject
.
put
(
"clientAdminEmail"
,
preference
.
optString
(
Preference
.
ADMIN_EMAIL
));
requestJSONObject
.
put
(
"clientRuntimeEnv"
,
Latkes
.
getRuntimeEnv
().
name
());
requestJSONObject
.
put
(
"clientRuntimeEnv"
,
Latkes
.
getRuntimeEnv
().
name
());
...
...
core/src/main/java/org/b3log/solo/plugin/broadcast/ChanceProcessor.java
View file @
a0d6bf63
...
@@ -51,7 +51,7 @@ import org.json.JSONObject;
...
@@ -51,7 +51,7 @@ import org.json.JSONObject;
* Broadcast chance processor.
* Broadcast chance processor.
*
*
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @author <a href="mailto:DL88250@gmail.com">Liang Ding</a>
* @version 1.0.0.
8, Apr 24
, 2013
* @version 1.0.0.
9, Jun 13
, 2013
* @since 0.6.0
* @since 0.6.0
*/
*/
@RequestProcessor
@RequestProcessor
...
@@ -293,7 +293,7 @@ public final class ChanceProcessor {
...
@@ -293,7 +293,7 @@ public final class ChanceProcessor {
broadcastRequest
.
put
(
"clientTitle"
,
clientTitle
);
broadcastRequest
.
put
(
"clientTitle"
,
clientTitle
);
broadcastRequest
.
put
(
"clientVersion"
,
clientVersion
);
broadcastRequest
.
put
(
"clientVersion"
,
clientVersion
);
broadcastRequest
.
put
(
"clientName"
,
clientName
);
broadcastRequest
.
put
(
"clientName"
,
clientName
);
broadcastRequest
.
put
(
"clientHost"
,
Latkes
.
getServe
rHost
()
+
":"
+
Latkes
.
getServerPort
());
broadcastRequest
.
put
(
"clientHost"
,
Latkes
.
getServe
Path
());
final
HTTPRequest
httpRequest
=
new
HTTPRequest
();
final
HTTPRequest
httpRequest
=
new
HTTPRequest
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment