Skip to content

Commit

Permalink
💡 更新注释
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jan 11, 2020
1 parent 95c041f commit 660f049
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion src/main/java/org/b3log/solo/service/ArticleMgmtService.java
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ public void pushArticleToCommunity(final String articleId) {
final JSONObject data = new JSONObject().put(ARTICLE, article);
B3ArticleSender.pushArticleToRhy(data);
} catch (final Exception e) {
LOGGER.log(Level.ERROR, "Pushes an article [id=" + articleId + "] to community failed", e);
LOGGER.log(Level.ERROR, "Pushes an article [id=" + articleId + "] to HacPai failed", e);
}
}

Expand Down Expand Up @@ -649,6 +649,8 @@ public void updateArticlesRandomValue(final int updateCnt) throws ServiceExcepti
* @throws ServiceException service exception
*/
public void incViewCount(final String articleId) throws ServiceException {
// v3.7.0 后开始使用社区浏览计数服务 https://github.com/Vanessa219/uvstat

// JSONObject article;
//
// try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,12 @@
import org.b3log.latke.logging.Level;
import org.b3log.latke.logging.Logger;
import org.b3log.latke.repository.RepositoryException;
import org.b3log.latke.repository.Transaction;
import org.b3log.latke.service.LangPropsService;
import org.b3log.latke.service.ServiceException;
import org.b3log.latke.service.annotation.Service;
import org.b3log.latke.util.Requests;
import org.b3log.latke.util.URLs;
import org.b3log.solo.cache.StatisticCache;
import org.b3log.solo.model.Option;
import org.b3log.solo.repository.ArticleRepository;
import org.b3log.solo.repository.OptionRepository;
import org.b3log.solo.util.Solos;
Expand Down Expand Up @@ -211,6 +209,8 @@ public static boolean hasBeenServed(final RequestContext context, final Response
* @throws ServiceException service exception
*/
public void incBlogViewCount(final RequestContext context, final Response response) throws ServiceException {
// v3.7.0 后开始使用社区浏览计数服务 https://github.com/Vanessa219/uvstat

// if (Solos.isBot(context.getRequest())) {
// return;
// }
Expand Down

0 comments on commit 660f049

Please # to comment.