diff --git a/luoo_user/src/main/java/com/luoo/user/controller/PointController.java b/luoo_user/src/main/java/com/luoo/user/controller/PointController.java index 84494d8..d5bf62c 100644 --- a/luoo_user/src/main/java/com/luoo/user/controller/PointController.java +++ b/luoo_user/src/main/java/com/luoo/user/controller/PointController.java @@ -228,7 +228,6 @@ public class PointController { @ApiOperation(value = "2.5.分享期刊(APP)", notes = "仅限app用户调用") @PostMapping("/log/share/journal") - @GlobalInterceptor(checkAppUserLogin = true) @ApiImplicitParams({ @ApiImplicitParam(name = "Authorization", value = "token", required = true, dataType = "String", paramType = "header"), @ApiImplicitParam(name = "journalId", value = "期刊id", required = true, dataType = "String", paramType = "query") diff --git a/luoo_user/src/main/java/com/luoo/user/service/UserPointLogService.java b/luoo_user/src/main/java/com/luoo/user/service/UserPointLogService.java index 5f24bf7..705584a 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/UserPointLogService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/UserPointLogService.java @@ -307,7 +307,9 @@ public class UserPointLogService { * @param token 用户token */ public void shareJournal(String token) { - addByTaskDaily(TaskPointIdConstants.SHARE_JOURNAL, token); + if (token != null) { + addByTaskDaily(TaskPointIdConstants.SHARE_JOURNAL, token); + } } public UserInvitationLogVO getUserInvitationLog(String token) {