日志修改
parent
fb8428d254
commit
e063d4c1da
|
@ -57,7 +57,7 @@ public class GmActivityLogic implements IEventHandler {
|
|||
|
||||
int giftId = rechargeBackEvent.getGiftId();
|
||||
if (giftId <= 0){
|
||||
LOGGER.info("返利活动信息,礼包id为0:uid:{},info:{}",user.getId(), rechargeBackEvent);
|
||||
LOGGER.error("返利活动信息,礼包id为0:uid:{},info:{}",user.getId(), rechargeBackEvent);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -72,7 +72,7 @@ public class GmActivityLogic implements IEventHandler {
|
|||
}
|
||||
}
|
||||
if (price <= 0){
|
||||
LOGGER.info("返利活动信息,金额为0:uid:{},info:{}",user.getId(), rechargeBackEvent);
|
||||
LOGGER.error("返利活动信息,金额为0:uid:{},info:{}",user.getId(), rechargeBackEvent);
|
||||
return;
|
||||
}
|
||||
// 自动返利
|
||||
|
@ -83,15 +83,15 @@ public class GmActivityLogic implements IEventHandler {
|
|||
LOGGER.info("返利活动信息长度:uid:{},num:{}",user.getId(),arbActivityMap.size());
|
||||
int i = 1;
|
||||
for (Map.Entry<String, ARBActivity> entry : arbActivityMap.entrySet()) {
|
||||
LOGGER.info("返利活动信息,第{}次循环:uid:{},aid:{}",i,user.getId(),entry.getKey());
|
||||
// LOGGER.info("返利活动信息,第{}次循环:uid:{},aid:{}",i,user.getId(),entry.getKey());
|
||||
try {
|
||||
ARBActivity arbActivity = entry.getValue();
|
||||
LOGGER.info("返利活动信息,第{}次循环:uid:{},aid:{},type:{}",i,user.getId(),arbActivity.getId(),arbActivity.getType());
|
||||
// LOGGER.info("返利活动信息,第{}次循环:uid:{},aid:{},type:{}",i,user.getId(),arbActivity.getId(),arbActivity.getType());
|
||||
// 时间校验
|
||||
long start = getStartTime(arbActivity);
|
||||
LOGGER.info("返利活动信息,第{}次循环:uid:{},aid:{},start:{}",i,user.getId(),arbActivity.getId(),start);
|
||||
// LOGGER.info("返利活动信息,第{}次循环:uid:{},aid:{},start:{}",i,user.getId(),arbActivity.getId(),start);
|
||||
long end = getEndTime(arbActivity);
|
||||
LOGGER.info("返利活动信息,第{}次循环:uid:{},aid:{},end:{}",i,user.getId(),arbActivity.getId(),end);
|
||||
// LOGGER.info("返利活动信息,第{}次循环:uid:{},aid:{},end:{}",i,user.getId(),arbActivity.getId(),end);
|
||||
long now = TimeUtils.now();
|
||||
LOGGER.info("返利活动信息,第{}次循环:uid:{},aid:{},type:{}, now:{}",i,user.getId(),arbActivity.getId(),arbActivity.getType(),now);
|
||||
if (now >= start && now < end){
|
||||
|
@ -204,12 +204,12 @@ public class GmActivityLogic implements IEventHandler {
|
|||
GmMission gmMission = gmActivity.getMissionMap().getOrDefault(arbMission.getId(), new GmMission());
|
||||
// 已领取
|
||||
if (gmMission.getState() == 1){
|
||||
LOGGER.info("单日累充,档位已领取,userid:{}, 活动id:{}, 档位id:{}", user.getId(),gmActivity.getId(),gmMission.getId());
|
||||
LOGGER.error("单日累充,档位已领取,userid:{}, 活动id:{}, 档位id:{}", user.getId(),gmActivity.getId(),gmMission.getId());
|
||||
continue;
|
||||
}
|
||||
// 不能领
|
||||
if (num < arbMission.getRechargeNum()){
|
||||
LOGGER.info("单日累充,金额不足,userid:{}, 活动id:{}, 金额:{}-{}", user.getId(),gmActivity.getId(),num,arbMission.getRechargeNum());
|
||||
LOGGER.error("单日累充,金额不足,userid:{}, 活动id:{}, 金额:{}-{}", user.getId(),gmActivity.getId(),num,arbMission.getRechargeNum());
|
||||
continue;
|
||||
}
|
||||
// 发邮件
|
||||
|
@ -225,7 +225,7 @@ public class GmActivityLogic implements IEventHandler {
|
|||
|
||||
// 领取完 全部奖励后重置活动
|
||||
long count = gmActivity.getMissionMap().values().stream().filter(v -> v.getState() == 1).count();
|
||||
LOGGER.info("单日累充,第二步,userid:{}, 活动id:{}, 完成度对比:{}-{}", user.getId(),gmActivity.getId(),gmMissionList.size(),count);
|
||||
// LOGGER.info("单日累充,第二步,userid:{}, 活动id:{}, 完成度对比:{}-{}", user.getId(),gmActivity.getId(),gmMissionList.size(),count);
|
||||
if (count > 0 && gmMissionList.size() == count){
|
||||
// 重置活动对象
|
||||
gmActivity.setMissionMap(new HashMap<>());
|
||||
|
@ -248,12 +248,12 @@ public class GmActivityLogic implements IEventHandler {
|
|||
GmMission gmMission = gmActivity.getMissionMap().getOrDefault(arbMission.getId(), new GmMission());
|
||||
// 已领取
|
||||
if (gmMission.getState() == 1){
|
||||
LOGGER.info("单笔充值奖励,档位已领取,userid:{}, 活动id:{}, 档位id:{}", user.getId(),gmActivity.getId(),gmMission.getId());
|
||||
LOGGER.error("单笔充值奖励,档位已领取,userid:{}, 活动id:{}, 档位id:{}", user.getId(),gmActivity.getId(),gmMission.getId());
|
||||
continue;
|
||||
}
|
||||
// 不能领
|
||||
if (price != arbMission.getRechargeNum()){
|
||||
LOGGER.info("单笔充值奖励,金额对比失败,userid:{}, 活动id:{}, 金额:{}-{}", user.getId(),gmActivity.getId(),price,arbMission.getRechargeNum());
|
||||
LOGGER.error("单笔充值奖励,金额对比失败,userid:{}, 活动id:{}, 金额:{}-{}", user.getId(),gmActivity.getId(),price,arbMission.getRechargeNum());
|
||||
continue;
|
||||
}
|
||||
// 发邮件
|
||||
|
@ -274,7 +274,7 @@ public class GmActivityLogic implements IEventHandler {
|
|||
private void getRewardToMonsterCurrencyBack(User user, GmActivity gmActivity, double price) throws Exception {
|
||||
Map<String, ARBMission> missionMap = findAllGmMissionMap(gmActivity.getId());
|
||||
if (missionMap == null || missionMap.isEmpty()) {
|
||||
LOGGER.info("妖晶返利活动,详细档位信息未配置,userid:{}, 活动id:{}", user.getId(), gmActivity.getId());
|
||||
LOGGER.error("妖晶返利活动,详细档位信息未配置,userid:{}, 活动id:{}", user.getId(), gmActivity.getId());
|
||||
return;
|
||||
}
|
||||
// 档位排序
|
||||
|
@ -288,7 +288,7 @@ public class GmActivityLogic implements IEventHandler {
|
|||
// 最低要求
|
||||
int limit = arbMissions.get(0).getBeforeNum();
|
||||
if (sumMoney < limit || sumMoney <= 0) {
|
||||
LOGGER.info("妖晶返利活动,充值金额不足最低领取调解,userid:{},活动id:{},当前累充金额:{},最低条件:{}", user.getId(), gmActivity.getId(), sumMoney, limit);
|
||||
LOGGER.error("妖晶返利活动,充值金额不足最低领取调解,userid:{},活动id:{},当前累充金额:{},最低条件:{}", user.getId(), gmActivity.getId(), sumMoney, limit);
|
||||
return;
|
||||
}
|
||||
// 首次计算标记
|
||||
|
|
Loading…
Reference in New Issue