|
|
@@ -2324,8 +2324,11 @@ public class OrderDonServiceImpl extends ServiceImpl<OrderDonMapper, OrderDon> i
|
|
|
User user = userMapper.selectById(orderDon.getUserId());
|
|
|
msgReq.setName(user.getNickname());
|
|
|
GroupsRelation groupsRelation = groupsRelationMapper.selectById(orderDon.getRelationId());
|
|
|
-
|
|
|
- msgReq.setDay(DateUtil.betweenDay(new Date(), groupsRelation.getExpiryTime(),true));
|
|
|
+ long day = DateUtil.betweenDay(new Date(), groupsRelation.getExpiryTime(),true);
|
|
|
+ if(day > 1000){
|
|
|
+ day = 365;
|
|
|
+ }
|
|
|
+ msgReq.setDay(day);
|
|
|
msgReq.setNumber(groupsRelation.getNum() >= 10 ? RandomUtil.randomInt(10) + 1 : groupsRelation.getNum());
|
|
|
try {
|
|
|
telegramService.sendMsg(msgReq);
|