Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 2b51017

Browse files
committed
🎨 Cleanup code
删除无用注释
1 parent d3cb3ea commit 2b51017

File tree

4 files changed

+0
-9
lines changed

4 files changed

+0
-9
lines changed

src/main/java/org/b3log/symphony/processor/LoginProcessor.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,6 @@ public void register2(final RequestContext context) {
596596
final JSONObject referralUser = userQueryService.getUserByName(referral);
597597
if (null != referralUser) {
598598
final String referralId = referralUser.optString(Keys.OBJECT_ID);
599-
// Point
600599
pointtransferMgmtService.transfer(Pointtransfer.ID_C_SYS, userId,
601600
Pointtransfer.TRANSFER_TYPE_C_INVITED_REGISTER,
602601
Pointtransfer.TRANSFER_SUM_C_INVITE_REGISTER, referralId, System.currentTimeMillis(), "");
@@ -607,7 +606,6 @@ public void register2(final RequestContext context) {
607606
final JSONObject notification = new JSONObject();
608607
notification.put(Notification.NOTIFICATION_USER_ID, referralId);
609608
notification.put(Notification.NOTIFICATION_DATA_ID, userId);
610-
611609
notificationMgmtService.addInvitationLinkUsedNotification(notification);
612610
}
613611
}

src/main/java/org/b3log/symphony/service/ArticleMgmtService.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -571,7 +571,6 @@ public synchronized String addArticle(final JSONObject requestJSONObject) throws
571571
}
572572

573573
if (Article.ARTICLE_ANONYMOUS_C_PUBLIC == articleAnonymous) {
574-
// Point
575574
final long followerCnt = followQueryService.getFollowerCount(authorId, Follow.FOLLOWING_TYPE_C_USER);
576575
final int addition = (int) Math.round(Math.sqrt(followerCnt));
577576
final int broadcast = Article.ARTICLE_TYPE_C_CITY_BROADCAST == articleType ?
@@ -746,7 +745,6 @@ public synchronized String addArticle(final JSONObject requestJSONObject) throws
746745
tagMgmtService.relateTags(article.optString(Article.ARTICLE_TAGS));
747746

748747
if (Article.ARTICLE_ANONYMOUS_C_PUBLIC == articleAnonymous) {
749-
// Point
750748
final long followerCnt = followQueryService.getFollowerCount(authorId, Follow.FOLLOWING_TYPE_C_USER);
751749
final int addition = (int) Math.round(Math.sqrt(followerCnt));
752750

@@ -842,7 +840,6 @@ public synchronized void updateArticle(final JSONObject requestJSONObject) throw
842840
articleAnonymous = articleToUpdate.optInt(Article.ARTICLE_ANONYMOUS);
843841

844842
if (Article.ARTICLE_ANONYMOUS_C_PUBLIC == articleAnonymous) {
845-
// Point
846843
final int balance = author.optInt(UserExt.USER_POINT);
847844
if (balance - updatePointSum < 0) {
848845
throw new ServiceException(langPropsService.get("insufficientBalanceLabel"));

src/main/java/org/b3log/symphony/service/CommentMgmtService.java

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,7 +440,6 @@ public synchronized String addComment(final JSONObject requestJSONObject) throws
440440

441441
int pointSum = Pointtransfer.TRANSFER_SUM_C_ADD_COMMENT;
442442

443-
// Point
444443
final String articleAuthorId = article.optString(Article.ARTICLE_AUTHOR_ID);
445444
if (articleAuthorId.equals(commentAuthorId)) {
446445
pointSum = Pointtransfer.TRANSFER_SUM_C_ADD_SELF_ARTICLE_COMMENT;
@@ -560,7 +559,6 @@ public synchronized String addComment(final JSONObject requestJSONObject) throws
560559
transaction.commit();
561560

562561
if (Comment.COMMENT_ANONYMOUS_C_PUBLIC == commentAnonymous && Article.ARTICLE_ANONYMOUS_C_PUBLIC == articleAnonymous) {
563-
// Point
564562
final String articleAuthorId = article.optString(Article.ARTICLE_AUTHOR_ID);
565563
if (articleAuthorId.equals(commentAuthorId)) {
566564
pointtransferMgmtService.transfer(commentAuthorId, Pointtransfer.ID_C_SYS,
@@ -646,7 +644,6 @@ public void updateComment(final String commentId, final JSONObject comment) thro
646644

647645
if (Comment.COMMENT_ANONYMOUS_C_PUBLIC == commentAnonymous
648646
&& Article.ARTICLE_ANONYMOUS_C_PUBLIC == articleAnonymous) {
649-
// Point
650647
if (notIn5m) {
651648
pointtransferMgmtService.transfer(commentAuthorId, Pointtransfer.ID_C_SYS,
652649
Pointtransfer.TRANSFER_TYPE_C_UPDATE_COMMENT,

src/main/java/org/b3log/symphony/service/UserMgmtService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -544,7 +544,6 @@ public synchronized String addUser(final JSONObject requestJSONObject) throws Se
544544
transaction.commit();
545545

546546
if (UserExt.USER_STATUS_C_VALID == status) {
547-
// Point
548547
pointtransferMgmtService.transfer(Pointtransfer.ID_C_SYS, ret,
549548
Pointtransfer.TRANSFER_TYPE_C_INIT, Pointtransfer.TRANSFER_SUM_C_INIT, ret, System.currentTimeMillis(), "");
550549

0 commit comments

Comments
 (0)