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(); }