| | |
| | | import org.springframework.stereotype.Component;
|
| | | import org.yeshi.utils.NumberUtil;
|
| | |
|
| | | import com.yeshi.fanli.entity.bus.user.UserInfoExtra;
|
| | | import com.yeshi.fanli.service.inter.integral.IntegralGetService;
|
| | | import com.yeshi.fanli.service.inter.user.UserInfoExtraService;
|
| | | import com.yeshi.fanli.service.inter.user.UserInfoModifyRecordService;
|
| | | import com.yeshi.fanli.util.StringUtil;
|
| | | import com.yeshi.fanli.util.ThreadUtil;
|
| | |
| | |
|
| | | @Resource
|
| | | private UserInfoModifyRecordService userInfoModifyRecordService;
|
| | |
|
| | | @Resource
|
| | | private UserInfoExtraService userInfoExtraService;
|
| | |
|
| | | @Resource
|
| | | private IntegralGetService integralGetService;
|
| | |
|
| | | private ExpressionParser parser = new SpelExpressionParser();
|
| | |
|
| | |
| | | Jedis jedis = jedisPool.getResource();
|
| | | try {
|
| | | if (jedis.setnx(key, "1") > 0) {
|
| | | jedis.expire(key, 60*5);// 5分钟内不处理
|
| | | jedis.expire(key, 60 * 5);// 5分钟内不处理
|
| | | try {
|
| | | // TODO 用户活跃处理
|
| | | userInfoModifyRecordService.syncBeforeInfo(Long.parseLong(uidStr));
|
| | | Long uid = Long.parseLong(uidStr);
|
| | | userInfoModifyRecordService.syncBeforeInfo(uid);
|
| | | UserInfoExtra extra = userInfoExtraService.getUserInfoExtra(uid);
|
| | | if (extra != null && !StringUtil.isNullOrEmpty(extra.getInviteCode()))
|
| | | integralGetService.addInviteActivate(uid);
|
| | | } catch (Exception e) {
|
| | | }
|
| | | }
|