Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
solo-1
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-1
Commits
e7db0b76
Commit
e7db0b76
authored
Dec 30, 2015
by
Liang Ding
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
时间统一为 24 小时制
parent
5bcd9d60
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
src/main/java/org/b3log/solo/api/symphony/CommentReceiver.java
...ain/java/org/b3log/solo/api/symphony/CommentReceiver.java
+2
-2
src/main/java/org/b3log/solo/processor/CommentProcessor.java
src/main/java/org/b3log/solo/processor/CommentProcessor.java
+3
-3
src/main/java/org/b3log/solo/service/CommentMgmtService.java
src/main/java/org/b3log/solo/service/CommentMgmtService.java
+5
-5
No files found.
src/main/java/org/b3log/solo/api/symphony/CommentReceiver.java
View file @
e7db0b76
...
@@ -57,7 +57,7 @@ import org.json.JSONObject;
...
@@ -57,7 +57,7 @@ import org.json.JSONObject;
* Comment receiver (from B3log Symphony).
* Comment receiver (from B3log Symphony).
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.1.
0.10, Nov 20
, 2015
* @version 1.1.
1.10, Dec 29
, 2015
* @since 0.5.5
* @since 0.5.5
*/
*/
@RequestProcessor
@RequestProcessor
...
@@ -217,7 +217,7 @@ public class CommentReceiver {
...
@@ -217,7 +217,7 @@ public class CommentReceiver {
final
Date
date
=
new
Date
();
final
Date
date
=
new
Date
();
comment
.
put
(
Comment
.
COMMENT_DATE
,
date
);
comment
.
put
(
Comment
.
COMMENT_DATE
,
date
);
ret
.
put
(
Comment
.
COMMENT_DATE
,
DateFormatUtils
.
format
(
date
,
"yyyy-MM-dd
hh
:mm:ss"
));
ret
.
put
(
Comment
.
COMMENT_DATE
,
DateFormatUtils
.
format
(
date
,
"yyyy-MM-dd
HH
:mm:ss"
));
if
(!
Strings
.
isEmptyOrNull
(
originalCommentId
))
{
if
(!
Strings
.
isEmptyOrNull
(
originalCommentId
))
{
originalComment
=
commentRepository
.
get
(
originalCommentId
);
originalComment
=
commentRepository
.
get
(
originalCommentId
);
if
(
null
!=
originalComment
)
{
if
(
null
!=
originalComment
)
{
...
...
src/main/java/org/b3log/solo/processor/CommentProcessor.java
View file @
e7db0b76
...
@@ -48,7 +48,7 @@ import org.json.JSONObject;
...
@@ -48,7 +48,7 @@ import org.json.JSONObject;
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author ArmstrongCN
* @author ArmstrongCN
* @version 1.2.
1.12, Dec 17
, 2015
* @version 1.2.
2.12, Dec 29
, 2015
* @since 0.3.1
* @since 0.3.1
*/
*/
@RequestProcessor
@RequestProcessor
...
@@ -91,7 +91,7 @@ public class CommentProcessor {
...
@@ -91,7 +91,7 @@ public class CommentProcessor {
* {
* {
* "oId": generatedCommentId,
* "oId": generatedCommentId,
* "sc": "COMMENT_PAGE_SUCC"
* "sc": "COMMENT_PAGE_SUCC"
* "commentDate": "", // yyyy/MM/dd
hh
:mm:ss
* "commentDate": "", // yyyy/MM/dd
HH
:mm:ss
* "commentSharpURL": "",
* "commentSharpURL": "",
* "commentThumbnailURL": "",
* "commentThumbnailURL": "",
* "commentOriginalCommentName": "" // if exists this key, the comment is an reply
* "commentOriginalCommentName": "" // if exists this key, the comment is an reply
...
@@ -186,7 +186,7 @@ public class CommentProcessor {
...
@@ -186,7 +186,7 @@ public class CommentProcessor {
* {
* {
* "oId": generatedCommentId,
* "oId": generatedCommentId,
* "sc": "COMMENT_ARTICLE_SUCC",
* "sc": "COMMENT_ARTICLE_SUCC",
* "commentDate": "", // yyyy/MM/dd
hh
:mm:ss
* "commentDate": "", // yyyy/MM/dd
HH
:mm:ss
* "commentSharpURL": "",
* "commentSharpURL": "",
* "commentThumbnailURL": "",
* "commentThumbnailURL": "",
* "commentOriginalCommentName": "", // if exists this key, the comment is an reply
* "commentOriginalCommentName": "", // if exists this key, the comment is an reply
...
...
src/main/java/org/b3log/solo/service/CommentMgmtService.java
View file @
e7db0b76
...
@@ -56,7 +56,7 @@ import org.jsoup.safety.Whitelist;
...
@@ -56,7 +56,7 @@ import org.jsoup.safety.Whitelist;
* Comment management service.
* Comment management service.
*
*
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @author <a href="http://88250.b3log.org">Liang Ding</a>
* @version 1.2.
0.8, Dec 17
, 2015
* @version 1.2.
1.8, Dec 29
, 2015
* @since 0.3.5
* @since 0.3.5
*/
*/
@Service
@Service
...
@@ -389,7 +389,7 @@ public class CommentMgmtService {
...
@@ -389,7 +389,7 @@ public class CommentMgmtService {
* @return add result, for example, <pre>
* @return add result, for example, <pre>
* {
* {
* "oId": "", // generated comment id
* "oId": "", // generated comment id
* "commentDate": "", // format: yyyy-MM-dd
hh
:mm:ss
* "commentDate": "", // format: yyyy-MM-dd
HH
:mm:ss
* "commentOriginalCommentName": "" // optional, corresponding to argument "commentOriginalCommentId"
* "commentOriginalCommentName": "" // optional, corresponding to argument "commentOriginalCommentId"
* "commentThumbnailURL": "",
* "commentThumbnailURL": "",
* "commentSharpURL": "",
* "commentSharpURL": "",
...
@@ -430,7 +430,7 @@ public class CommentMgmtService {
...
@@ -430,7 +430,7 @@ public class CommentMgmtService {
final
Date
date
=
new
Date
();
final
Date
date
=
new
Date
();
comment
.
put
(
Comment
.
COMMENT_DATE
,
date
);
comment
.
put
(
Comment
.
COMMENT_DATE
,
date
);
ret
.
put
(
Comment
.
COMMENT_DATE
,
DateFormatUtils
.
format
(
date
,
"yyyy-MM-dd
hh
:mm:ss"
));
ret
.
put
(
Comment
.
COMMENT_DATE
,
DateFormatUtils
.
format
(
date
,
"yyyy-MM-dd
HH
:mm:ss"
));
if
(!
Strings
.
isEmptyOrNull
(
originalCommentId
))
{
if
(!
Strings
.
isEmptyOrNull
(
originalCommentId
))
{
originalComment
=
commentRepository
.
get
(
originalCommentId
);
originalComment
=
commentRepository
.
get
(
originalCommentId
);
if
(
null
!=
originalComment
)
{
if
(
null
!=
originalComment
)
{
...
@@ -509,7 +509,7 @@ public class CommentMgmtService {
...
@@ -509,7 +509,7 @@ public class CommentMgmtService {
* @return add result, for example, <pre>
* @return add result, for example, <pre>
* {
* {
* "oId": "", // generated comment id
* "oId": "", // generated comment id
* "commentDate": "", // format: yyyy-MM-dd
hh
:mm:ss
* "commentDate": "", // format: yyyy-MM-dd
HH
:mm:ss
* "commentOriginalCommentName": "" // optional, corresponding to argument "commentOriginalCommentId"
* "commentOriginalCommentName": "" // optional, corresponding to argument "commentOriginalCommentId"
* "commentThumbnailURL": "",
* "commentThumbnailURL": "",
* "commentSharpURL": "",
* "commentSharpURL": "",
...
@@ -552,7 +552,7 @@ public class CommentMgmtService {
...
@@ -552,7 +552,7 @@ public class CommentMgmtService {
final
Date
date
=
new
Date
();
final
Date
date
=
new
Date
();
comment
.
put
(
Comment
.
COMMENT_DATE
,
date
);
comment
.
put
(
Comment
.
COMMENT_DATE
,
date
);
ret
.
put
(
Comment
.
COMMENT_DATE
,
DateFormatUtils
.
format
(
date
,
"yyyy-MM-dd
hh
:mm:ss"
));
ret
.
put
(
Comment
.
COMMENT_DATE
,
DateFormatUtils
.
format
(
date
,
"yyyy-MM-dd
HH
:mm:ss"
));
ret
.
put
(
Comment
.
COMMENT_NAME
,
commentName
);
ret
.
put
(
Comment
.
COMMENT_NAME
,
commentName
);
ret
.
put
(
Comment
.
COMMENT_CONTENT
,
commentContent
);
ret
.
put
(
Comment
.
COMMENT_CONTENT
,
commentContent
);
...
...
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