From e6e797775663235efd795c000aaca2411606a584 Mon Sep 17 00:00:00 2001 From: huangyw <1207046171@qq.com> Date: Thu, 25 Jul 2024 08:28:58 +0800 Subject: [PATCH] =?UTF-8?q?release:=20=E9=A6=96=E6=AC=A1=E6=94=B6=E8=97=8F?= =?UTF-8?q?=E6=9C=9F=E5=88=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/constants/TaskPointIdConstants.java | 2 +- .../java/com/luoo/user/controller/UserCollectController.java | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/luoo_common/src/main/java/constants/TaskPointIdConstants.java b/luoo_common/src/main/java/constants/TaskPointIdConstants.java index ad3a49c..5fbd4fe 100644 --- a/luoo_common/src/main/java/constants/TaskPointIdConstants.java +++ b/luoo_common/src/main/java/constants/TaskPointIdConstants.java @@ -20,7 +20,7 @@ public class TaskPointIdConstants { public static final String SUCCESS_FOLLOW_ONE_USER = "5"; // 首次分享期刊 todo public static final String FIRST_SHARE_JOURNAL = "6"; - // 首次收藏期刊 todo + // 首次收藏期刊 public static final String FIRST_COLLECT_JOURNAL = "7"; // 首次购物成功 todo public static final String FIRST_SHOPPING_SUCCESS = "8"; diff --git a/luoo_user/src/main/java/com/luoo/user/controller/UserCollectController.java b/luoo_user/src/main/java/com/luoo/user/controller/UserCollectController.java index c3c5d76..07c82b4 100644 --- a/luoo_user/src/main/java/com/luoo/user/controller/UserCollectController.java +++ b/luoo_user/src/main/java/com/luoo/user/controller/UserCollectController.java @@ -51,6 +51,11 @@ public class UserCollectController { // 初次关注某用户 userPointLogService.addByTaskNew(TaskPointIdConstants.SUCCESS_FOLLOW_ONE_USER, authorization); } + + if(Objects.equals(collectType, 1)) { + // 首次收藏期刊 + userPointLogService.addByTaskNew(TaskPointIdConstants.FIRST_COLLECT_JOURNAL, authorization); + } return Result.success(); }