| | |
| | |
|
| | | import javax.annotation.Resource;
|
| | |
|
| | | import com.yeshi.fanli.entity.SystemEnum;
|
| | | import org.springframework.context.annotation.Lazy;
|
| | | import org.springframework.stereotype.Service;
|
| | | import org.springframework.transaction.annotation.Transactional;
|
| | |
| | | if (userInfo.getState() != UserVIPInfo.STATE_INVALID)
|
| | | throw new UserVIPInfoException(2, "系统已收到你的超级会员升级申请,将会尽快完成审核");
|
| | |
|
| | | SystemEnum system = userInfoService.getUserSystem(uid);
|
| | |
|
| | | UserVIPInfo info = new UserVIPInfo();
|
| | | info.setId(userInfo.getId());
|
| | | info.setApplyTime(new Date());
|
| | |
| | | userVIPInfoMapper.updateByPrimaryKeySelective(info);
|
| | | // 发送邮件通知
|
| | | try {
|
| | | Config config = configService.getConfig(ConfigKeyEnum.extractCodeEmailFrom.getKey());
|
| | | Config config = configService.getConfig(ConfigKeyEnum.extractCodeEmailFrom.getKey(), system);
|
| | | String[] sts = config.getValue().split(",");
|
| | | String account = sts[0];
|
| | | String pwd = sts[1];
|
| | |
| | |
|
| | | /**
|
| | | * 验证是否符合VIP
|
| | | *
|
| | | * @param uid
|
| | | * @return
|
| | | */
|
| | |
| | |
|
| | | /**
|
| | | * 验证是否符合VIP
|
| | | * @Title: verifyVip
|
| | | * @Description: |
| | | *
|
| | | * @param uid
|
| | | * @return 0-不符合 1-订单 2-团队
|
| | | * int 返回类型
|
| | | * @throws
|
| | | * @Title: verifyVip
|
| | | * @Description:
|
| | | */
|
| | | private int verifyVip(Long uid) {
|
| | | // 自购 + 分享订单
|