From 647ebfe6b733c7472db7c21ffc46691d65b90349 Mon Sep 17 00:00:00 2001 From: huangyw <1207046171@qq.com> Date: Wed, 6 Nov 2024 16:31:07 +0800 Subject: [PATCH] =?UTF-8?q?release:=20=E5=85=81=E8=AE=B8=E5=8C=BF=E5=90=8D?= =?UTF-8?q?=E5=88=86=E4=BA=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/luoo/user/controller/PointController.java | 1 - .../main/java/com/luoo/user/service/UserPointLogService.java | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) 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) {