| | |
| | | receiveGift("领取礼品","http://img.flqapp.com/resource/msg/icon_msg_invite.png"),
|
| | | fansUpgrade("粉丝升级","http://img.flqapp.com/resource/msg/icon_msg_team_level.png"),
|
| | | fansDivorced("脱离提醒","http://img.flqapp.com/resource/msg/icon_msg_team_separate.png"),
|
| | | inviteSucceed("邀请提醒","http://img.flqapp.com/resource/msg/icon_msg_invite.png");
|
| | | inviteSucceed("邀请提醒","http://img.flqapp.com/resource/msg/icon_msg_invite.png"),
|
| | | pullNewRedPack("邀请提醒","http://img.flqapp.com/resource/msg/icon_msg_invite.png");
|
| | | |
| | |
|
| | | private final String desc;
|
| | | private final String icon;
|
| | |
| | | import com.yeshi.fanli.service.inter.user.UserSystemCouponService;
|
| | | import com.yeshi.fanli.service.inter.user.integral.IntegralTaskRecordService;
|
| | | import com.yeshi.fanli.service.inter.user.invite.ThreeSaleSerivce;
|
| | | import com.yeshi.fanli.service.inter.user.invite.UserInviteMsgNotificationService;
|
| | | import com.yeshi.fanli.service.inter.user.tb.UserExtraTaoBaoInfoService;
|
| | | import com.yeshi.fanli.util.Constant;
|
| | | import com.yeshi.fanli.util.MoneyBigDecimalUtil;
|
| | |
| | |
|
| | | @Resource
|
| | | private UserSystemCouponService userSystemCouponService;
|
| | | |
| | | @Resource
|
| | | private UserInviteMsgNotificationService userInviteMsgNotificationService;
|
| | |
|
| | |
|
| | | @Override
|
| | |
| | | winInvite.setType(RedPackWinInviteTypeEnum.inviteDownOrder);
|
| | | winInvite.setIdentifyCode(StringUtil.Md5(RedPackWinInviteTypeEnum.inviteDownOrder.name() + ":" + orderUid));
|
| | | redPackWinInviteMapper.insertSelective(winInvite);
|
| | | |
| | | // 消息提醒
|
| | | UserInfo userInfo = userInfoService.selectByPKey(orderUid);
|
| | | userInviteMsgNotificationService.pullNewRedPack(bossId, userInfo.getNickName(), userInfo.getPortrait());
|
| | | }
|
| | |
|
| | | @Override
|
| | |
| | | saveMsgDetail(MsgInviteDetailFactory.fansUpgrade(uid, rankName, nickName, item, time));
|
| | | }
|
| | |
|
| | | @Override
|
| | | @Transactional(rollbackFor = Exception.class)
|
| | | public void pullNewRedPack(Long uid, String nickName, String portrait) {
|
| | | saveMsgDetail(MsgInviteDetailFactory.pullNewRedPack(uid, nickName, portrait));
|
| | | }
|
| | | |
| | | |
| | |
|
| | | }
|
| | |
| | | */
|
| | | public void fansUpgrade(Long uid, String rankName, String nickName, String item, Date time);
|
| | |
|
| | | /**
|
| | | * 上级奖励拉新红包
|
| | | * @param uid
|
| | | * @param nickName
|
| | | * @param portrait
|
| | | */
|
| | | public void pullNewRedPack(Long uid, String nickName, String portrait);
|
| | |
|
| | |
|
| | | }
|
| | |
| | | return detail;
|
| | | }
|
| | |
|
| | | |
| | | /**
|
| | | * 间接邀请
|
| | | * @param uid
|
| | | * @param inviteName
|
| | | * @param nickName
|
| | | * @param portrait
|
| | | * @param time
|
| | | * @return
|
| | | */
|
| | | public static MsgInviteDetail pullNewRedPack(Long uid, String nickName, String portrait) {
|
| | | if (nickName == null || uid == null || portrait == null)
|
| | | return null;
|
| | | List<CommonMsgItemVO> listMsg = new ArrayList<>();
|
| | | List<ClientTextStyleVO> contentList = new ArrayList<>();
|
| | | contentList.add(new ClientTextStyleVO("",ClientTextStyleVO.COLOR_CONTENT, portrait));
|
| | | contentList.add(new ClientTextStyleVO("&" + nickName, ClientTextStyleVO.COLOR_CONTENT));
|
| | | listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("粉丝信息", ClientTextStyleVO.COLOR_TITLE),contentList));
|
| | | listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("粉丝类别", ClientTextStyleVO.COLOR_TITLE),new ClientTextStyleVO("直接粉丝", ClientTextStyleVO.COLOR_CONTENT)));
|
| | | listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("信息维护", ClientTextStyleVO.COLOR_TITLE),
|
| | | new ClientTextStyleVO("该粉丝完成了你的拉新奖励订单,拉新奖励红包会在该订单确认收货后的次月26日到账", ClientTextStyleVO.COLOR_CONTENT)));
|
| | | listMsg.add(CommonMsgItemVOFactory.createMsgItemVO(new ClientTextStyleVO("备注", ClientTextStyleVO.COLOR_TITLE),
|
| | | new ClientTextStyleVO("无", ClientTextStyleVO.COLOR_CONTENT)));
|
| | | |
| | | MsgInviteDetail detail = new MsgInviteDetail();
|
| | | detail.setCreateTime(new Date());
|
| | | detail.setMsgType(MsgTypeInviteTypeEnum.pullNewRedPack);
|
| | | detail.setRead(false);
|
| | | detail.setUser(new UserInfo(uid));
|
| | | detail.setExtraInfo(new Gson().toJson(listMsg));
|
| | | return detail;
|
| | | }
|
| | | |
| | | }
|