From 93d615c6657adf89d302ded7bba7d467b7622b4a Mon Sep 17 00:00:00 2001 From: huangyw <1207046171@qq.com> Date: Wed, 31 Jul 2024 15:39:11 +0800 Subject: [PATCH] =?UTF-8?q?release:=20=E6=96=B0=E6=89=8B=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E7=A7=AF=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/constants/TaskPointIdConstants.java | 83 ++++++++-------- .../user/controller/MembershipController.java | 5 +- .../luoo/user/controller/MyController.java | 32 ++++++- .../controller/UserCollectController.java | 17 ++-- .../user/service/MembershipCodeService.java | 17 +++- .../user/service/UserPointLogService.java | 13 ++- luoo_user/src/main/resources/sql/20240719.sql | 95 +++++-------------- 7 files changed, 133 insertions(+), 129 deletions(-) diff --git a/luoo_common/src/main/java/constants/TaskPointIdConstants.java b/luoo_common/src/main/java/constants/TaskPointIdConstants.java index 5fbd4fe..02f9ddf 100644 --- a/luoo_common/src/main/java/constants/TaskPointIdConstants.java +++ b/luoo_common/src/main/java/constants/TaskPointIdConstants.java @@ -8,44 +8,53 @@ package constants; **/ public class TaskPointIdConstants { - // 新手欢迎奖励 - public static final String NEW_USER_WELCOME_AWARD = "1"; - // 修改头像 - public static final String MODIFY_AVATAR = "2"; - // 修改昵称 - public static final String MODIFY_NICKNAME = "3"; - // 完善个人信息 todo - public static final String COMPLETE_PERSONAL_INFORMATION = "4"; - // 成功关注1位用户 - public static final String SUCCESS_FOLLOW_ONE_USER = "5"; - // 首次分享期刊 todo - public static final String FIRST_SHARE_JOURNAL = "6"; - // 首次收藏期刊 - public static final String FIRST_COLLECT_JOURNAL = "7"; - // 首次购物成功 todo - public static final String FIRST_SHOPPING_SUCCESS = "8"; - // 首次完成评价 todo - public static final String FIRST_COMPLETE_COMMENT = "9"; - // 开通会员 todo - public static final String OPEN_MEMBER = "10"; + // 新手欢迎奖励 + public static final String NEW_USER_WELCOME_AWARD = "1"; + // 修改头像 + public static final String MODIFY_AVATAR = "2"; + // 修改昵称 + public static final String MODIFY_NICKNAME = "3"; + // 修改签名 + public static final String MODIFY_SIGNATURE = "4"; + // 完善生日 + public static final String MODIFY_BIRTHDAY = "5"; + // 完善性别 + public static final String MODIFY_SEX = "6"; + // 开通会员 + public static final String BUY_MEMBER = "7"; + // 成功关注1位用户 + public static final String SUCCESS_FOLLOW_ONE_USER = "8"; + // 首次收藏期刊 + public static final String FIRST_COLLECT_JOURNAL = "9"; - // 以下不需要校验是否已做过 - // 每日登录 todo - public static final String DAILY_LOGIN = "11"; - // 每日签到 todo - public static final String DAILY_SIGN = "12"; - // 分享期刊 todo - public static final String SHARE_JOURNAL = "13"; - // 邀请好友 todo - public static final String INVITE_FRIEND = "14"; - // 好友首次下单成功 todo - public static final String FRIEND_FIRST_ORDER_SUCCESS = "15"; - // 购买天数达标 todo - public static final String BUY_DAYS_REACHED = "16"; - // 积分抽奖 todo - public static final String POINT_LOTTERY = "17"; - // 积分商城 todo - public static final String POINT_SHOP = "18"; + + // 每日登录 todo + public static final String DAILY_LOGIN = "10"; + // 每日签到 todo + public static final String DAILY_SIGN = "11"; + // 分享期刊 todo + public static final String SHARE_JOURNAL = "12"; + // 新用户邀请 todo + public static final String NEW_USER_INVITE = "13"; + // 每日评论 todo + public static final String DAILY_COMMENT = "14"; + // 动态发布 todo + public static final String DYNAMIC_PUBLISH = "15"; + + // 连续签到3天 todo + public static final String DAILY_SIGN_3 = "16"; + // 连续签到7天 todo + public static final String DAILY_SIGN_7 = "17"; + // 连续签到30天 todo + public static final String DAILY_SIGN_30 = "18"; + // 邀请用户3人 todo + public static final String INVITE_USER_3 = "19"; + // 邀请用户6人 todo + public static final String INVITE_USER_6 = "20"; + // 邀请用户10人 todo + public static final String INVITE_USER_10 = "21"; + // 邀请用户20人 todo + public static final String INVITE_USER_20 = "22"; } diff --git a/luoo_user/src/main/java/com/luoo/user/controller/MembershipController.java b/luoo_user/src/main/java/com/luoo/user/controller/MembershipController.java index d2006d5..0ab4291 100644 --- a/luoo_user/src/main/java/com/luoo/user/controller/MembershipController.java +++ b/luoo_user/src/main/java/com/luoo/user/controller/MembershipController.java @@ -73,11 +73,10 @@ public class MembershipController extends BaseController { @ApiImplicitParams(value = { @ApiImplicitParam(name = "code", value = "会员码", required = true, dataType = "String", paramType = "query") }) - public Result bindMembershipCode( + public Result bindMembershipCode( @RequestHeader(value = "Authorization", required = true) String authorization, @NotNull String code) { - membershipCodeService.bindMembershipCode(authorization, code); - return Result.success(); + return Result.success(membershipCodeService.bindMembershipCode(authorization, code)); } @ApiOperation(value = "3.查询会员码", notes = "仅限admin权限用户调用") diff --git a/luoo_user/src/main/java/com/luoo/user/controller/MyController.java b/luoo_user/src/main/java/com/luoo/user/controller/MyController.java index 2da37b0..5213fe7 100644 --- a/luoo_user/src/main/java/com/luoo/user/controller/MyController.java +++ b/luoo_user/src/main/java/com/luoo/user/controller/MyController.java @@ -118,7 +118,7 @@ public class MyController extends BaseController { @ApiOperation(value = "2.更新个人信息", notes = "游客无法编辑个人信息") @PutMapping("/userInfo") @GlobalInterceptor(checkAppUserLogin = true) - public Result updateUserInfo(@RequestHeader(value = "Authorization", required = true) String authorization, + public Result> updateUserInfo(@RequestHeader(value = "Authorization", required = true) String authorization, @VerifyParam(required = true) @RequestBody UserInfoUpdateDto userInfoUpdateDto) { UserLoginDto userLoginDto = getUserLoginDto(authorization); UserInfo user = userInfoService.findById(userLoginDto.getUserId()); @@ -138,6 +138,15 @@ public class MyController extends BaseController { // 修改了昵称 boolean isChangeNickName = !Objects.equals(nickName, user.getNickName()); + // 修改了签名 + boolean isChangeSignature = !Objects.equals(userInfoUpdateDto.getSignature(), user.getSignature()); + + // 修改了生日 + boolean isChangeBirthDay = !Objects.equals(userInfoUpdateDto.getBirthDay(), user.getBirthday()); + + // 修改了性别 + boolean isChangeSex = !Objects.equals(userInfoUpdateDto.getSex(), user.getSex()); + if (!StringTools.isEmpty(nickName)) { user.setNickName(nickName); rabbitTemplate.convertAndSend("userInfoCommentCache", userLoginDto.getUserId()); @@ -159,11 +168,28 @@ public class MyController extends BaseController { user.setModifyTime(new Date()); userInfoService.update(user); + List resultList = new ArrayList<>(); if(isChangeNickName) { // 修改了昵称 - userPointLogService.addByTaskNew(TaskPointIdConstants.MODIFY_NICKNAME, user.getNickName()); + Integer point = userPointLogService.addByTaskNew(TaskPointIdConstants.MODIFY_NICKNAME, authorization); + resultList.add("修改了昵称,积分增加" + point + "分"); } - return Result.success(); + if(isChangeSignature) { + // 修改了签名 + Integer point = userPointLogService.addByTaskNew(TaskPointIdConstants.MODIFY_SIGNATURE, authorization); + resultList.add("修改了签名,积分增加" + point + "分"); + } + if(isChangeBirthDay) { + // 修改了生日 + Integer point = userPointLogService.addByTaskNew(TaskPointIdConstants.MODIFY_BIRTHDAY, authorization); + resultList.add("修改了签名,积分增加" + point + "分"); + } + if(isChangeSex) { + // 修改了性别 + Integer point = userPointLogService.addByTaskNew(TaskPointIdConstants.MODIFY_SEX, authorization); + resultList.add("修改了签名,积分增加" + point + "分"); + } + return Result.success(resultList); } @ApiOperation(value = "3.上传个人头像", notes = "图片存入S3,桶为indie,目录为 user/avatar/, 缩略图大小为200X200") 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 07c82b4..e51c88f 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 @@ -11,6 +11,9 @@ import io.swagger.annotations.Api; import io.swagger.annotations.ApiImplicitParam; import io.swagger.annotations.ApiImplicitParams; import io.swagger.annotations.ApiOperation; + +import java.util.ArrayList; +import java.util.List; import java.util.Objects; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.web.bind.annotation.*; @@ -39,7 +42,7 @@ public class UserCollectController { @ApiImplicitParam(name = "collectType", value = "0:歌曲,1:期刊,2:关注,3:黑名单,4:粉丝,5:点赞,6:专辑", required = true)}) @PostMapping @GlobalInterceptor(checkAppUserLogin = true) - public Result addCollect( + public Result> addCollect( @RequestHeader(value = "Authorization", required = true) String authorization, @VerifyParam(required = true) @RequestParam("objectId") String objectId, @VerifyParam(required = true) @RequestParam("collectType") Integer collectType) { @@ -47,19 +50,21 @@ public class UserCollectController { //userCollectService.saveCollect(loginDto.getUserId(), objectId, collectType); userCollectInfoService.saveCollect(loginDto.getUserId(), objectId, collectType); + List result = new ArrayList<>(); if(Objects.equals(collectType, 2)) { - // 初次关注某用户 - userPointLogService.addByTaskNew(TaskPointIdConstants.SUCCESS_FOLLOW_ONE_USER, authorization); + // 首次关注某用户 + Integer point = userPointLogService.addByTaskNew(TaskPointIdConstants.SUCCESS_FOLLOW_ONE_USER, authorization); + result.add("初次关注用户,积分增加" + point + "分"); } if(Objects.equals(collectType, 1)) { // 首次收藏期刊 - userPointLogService.addByTaskNew(TaskPointIdConstants.FIRST_COLLECT_JOURNAL, authorization); + Integer point = userPointLogService.addByTaskNew(TaskPointIdConstants.FIRST_COLLECT_JOURNAL, authorization); + result.add("首次收藏期刊,积分增加" + point + "分"); } - return Result.success(); + return Result.success(result); } - //@ApiOperation(value = "2.取消 喜欢歌曲/收藏期刊/关注/黑名单/点赞") @ApiOperation(value = "2.取消 喜欢歌曲/收藏期刊/关注/黑名单/粉丝") @ApiImplicitParams({ //@ApiImplicitParam(name = "objectId", value = "喜欢歌曲/收藏期刊/关注某用户/某用户列入黑名单/点赞评论的id", required = true), diff --git a/luoo_user/src/main/java/com/luoo/user/service/MembershipCodeService.java b/luoo_user/src/main/java/com/luoo/user/service/MembershipCodeService.java index 3fd148f..6911bc2 100644 --- a/luoo_user/src/main/java/com/luoo/user/service/MembershipCodeService.java +++ b/luoo_user/src/main/java/com/luoo/user/service/MembershipCodeService.java @@ -8,6 +8,7 @@ import com.luoo.user.dto.point.UserPointLogSearchDto; import com.luoo.user.pojo.MembershipCode; import com.luoo.user.pojo.UserInfo; import com.luoo.user.pojo.UserPointLog; +import constants.TaskPointIdConstants; import dto.UserLoginDto; import enums.MembershipEnums; import enums.PointEnums; @@ -58,12 +59,15 @@ public class MembershipCodeService { private final UserInfoDao userInfoDao; + private final UserPointLogService userPointLogService; + public MembershipCodeService(JwtUtil jwtUtil, IdWorker idWorker, - MembershipCodeDao membershipCodeDao, UserInfoDao userInfoDao) { + MembershipCodeDao membershipCodeDao, UserInfoDao userInfoDao, UserPointLogService userPointLogService) { this.jwtUtil = jwtUtil; this.idWorker = idWorker; this.membershipCodeDao = membershipCodeDao; this.userInfoDao = userInfoDao; + this.userPointLogService = userPointLogService; } /** @@ -118,7 +122,7 @@ public class MembershipCodeService { * @param code 会员码 */ @Transactional(rollbackFor = Exception.class) - public void bindMembershipCode(String token, String code) { + public String bindMembershipCode(String token, String code) { UserLoginDto userLoginDto = jwtUtil.getUserLoginDto(token); MembershipCode membershipCode = membershipCodeDao.findMembershipCodeByCodeAndStatus(code, MembershipEnums.CREATED.getCode()); @@ -134,6 +138,13 @@ public class MembershipCodeService { // 处理用户表 UserInfo userInfo = userInfoDao.findById(userLoginDto.getUserId()).get(); + String result = ""; + if(userInfo.getVipStatus() == UserVipStatusEnum.INITIAL.getCode()) { + // 首次开通会员 + Integer point = userPointLogService.addByTaskNew(TaskPointIdConstants.BUY_MEMBER, token); + result = "首次开通会员,积分增加" + point + "分"; + } + // 永久会员码 if(Objects.equals(membershipCode.getLife(), PointEnums.MEMBERSHIP_LIFE.getCode())) { userInfo.setVipStatus(UserVipStatusEnum.LIFE.getCode()); @@ -154,7 +165,7 @@ public class MembershipCodeService { } userInfoDao.save(userInfo); - + return result; } public PageResult getMembershipCodeList(String token, Integer page, Integer size, 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 df0faaa..cb67367 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 @@ -77,16 +77,19 @@ public class UserPointLogService { * @param taskPointId 任务点ID * @param token 用户的token,用于验证用户身份并获取用户ID。 */ - public void addByTaskNew(String taskPointId, String token) { + public Integer addByTaskNew(String taskPointId, String token) { + // todo 缓存优化 UserLoginDto userLoginDto = jwtUtil.getUserLoginDto(token); // 新手任务,只触发一次 -// if (!userPointLogDao.findUserPointLogByUserIdAndTaskPointId(userLoginDto.getUserId(), -// taskPointId).isEmpty()) { -// return; -// } + if (!userPointLogDao.findUserPointLogByUserIdAndTaskPointId(userLoginDto.getUserId(), + taskPointId).isEmpty()) { + return 0; + } addByTask(taskPointId, userLoginDto); + TaskPoint taskPoint = taskPointDao.findById(taskPointId).get(); + return taskPoint.getScore(); } /** diff --git a/luoo_user/src/main/resources/sql/20240719.sql b/luoo_user/src/main/resources/sql/20240719.sql index 07706d5..bb0e9c4 100644 --- a/luoo_user/src/main/resources/sql/20240719.sql +++ b/luoo_user/src/main/resources/sql/20240719.sql @@ -52,76 +52,27 @@ create table tb_task_point valid tinyint 1 comment '是否生效 1-生效 2-不生效' ) comment '任务积分配置表'; -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('1', 1, 1, '新手欢迎奖励', '2024-07-24 08:57:28', '2024-07-24 08:57:28', - '1796003413067173888', '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('10', 10, 1, '开通会员', '2024-07-24 08:57:28', '2024-07-24 08:57:28', - '1796003413067173888', '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('11', 11, 2, '每日登录', '2024-07-24 08:57:28', '2024-07-24 08:57:28', - '1796003413067173888', '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('12', 12, 2, '每日签到', '2024-07-24 08:57:28', '2024-07-24 08:57:28', - '1796003413067173888', '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('13', 13, 2, '分享期刊', '2024-07-24 08:57:28', '2024-07-24 08:57:28', - '1796003413067173888', '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('14', 14, 2, '邀请好友', '2024-07-24 08:57:28', '2024-07-24 08:57:28', - '1796003413067173888', '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('15', 15, 2, '好友首次下单成功', '2024-07-24 08:57:28', '2024-07-24 08:57:28', - '1796003413067173888', '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('16', 16, 2, '购买天数达标', '2024-07-24 08:57:28', '2024-07-24 08:57:28', - '1796003413067173888', '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('2', 2, 1, '修改头像', '2024-07-24 08:57:28', '2024-07-24 08:57:28', '1796003413067173888', - '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('3', 3, 1, '修改昵称', '2024-07-24 08:57:28', '2024-07-24 08:57:28', '1796003413067173888', - '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('4', 4, 1, '完善个人信息', '2024-07-24 08:57:28', '2024-07-24 08:57:28', - '1796003413067173888', '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('5', 5, 1, '成功关注1位用户', '2024-07-24 08:57:28', '2024-07-24 08:57:28', - '1796003413067173888', '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('6', 6, 1, '首次分享期刊', '2024-07-24 08:57:28', '2024-07-24 08:57:28', - '1796003413067173888', '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('7', 7, 1, '首次收藏期刊', '2024-07-24 08:57:28', '2024-07-24 08:57:28', - '1796003413067173888', '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('8', 8, 1, '首次购物成功', '2024-07-24 08:57:28', '2024-07-24 08:57:28', - '1796003413067173888', '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('9', 9, 1, '首次完成评价', '2024-07-24 08:57:28', '2024-07-24 08:57:28', - '1796003413067173888', '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('17', -1, 2, '积分抽奖', '2024-07-24 08:57:28', '2024-07-24 08:57:28', - '1796003413067173888', '1796003413067173888'); -INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, - `create_user`, `update_user`) -VALUES ('18', -1, 2, '积分商城', '2024-07-24 08:57:28', '2024-07-24 08:57:28', - '1796003413067173888', '1796003413067173888'); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('1', 1, 1, '新手欢迎奖励', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('10', 10, 2, '每日登录', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('11', 11, 2, '每日签到', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('12', 12, 2, '分享期刊', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('13', 13, 2, '新用户邀请', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('14', 14, 2, '每日评论', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('15', 15, 2, '动态发布', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('16', 16, 3, '连续签到3天', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('17', 17, 3, '连续签到7天', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('18', 18, 3, '连续签到30天', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('19', 19, 3, '邀请用户3人', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('2', 2, 1, '修改头像', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('20', 20, 3, '邀请用户6人', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('21', 21, 3, '邀请用户10人', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('22', 22, 3, '邀请用户20人', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('3', 3, 1, '修改昵称', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('4', 4, 1, '修改签名', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('5', 5, 1, '完善生日', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('6', 6, 1, '完善性别', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('7', 7, 1, '开通会员', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('8', 8, 1, '关注1位雀乐用户', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +INSERT INTO `tb_task_point` (`id`, `score`, `type`, `description`, `create_time`, `update_time`, `create_user`, `update_user`, `valid`) VALUES ('9', 9, 1, '收藏一期期刊', '2024-07-31 14:23:58', '2024-07-31 14:23:58', NULL, NULL, 1); +