Authored by tanling

邀请

@@ -42,16 +42,16 @@ public class InviteRecordHandler implements IEventHandler<InviteRecordEvent> { @@ -42,16 +42,16 @@ public class InviteRecordHandler implements IEventHandler<InviteRecordEvent> {
42 return; 42 return;
43 } 43 }
44 44
45 - EntrySellerRechargeOrder entrySellerRechargeOrder = entrySellerRechargeOrderMapper.selectByOrderCodeUid(event.getOrderCode(), event.getUid());  
46 - if (entrySellerRechargeOrder == null){  
47 - logger.info("has no invite code, uid is {}, orderCode is {}", event.getUid(), event.getOrderCode());  
48 - return;  
49 - }  
50 -  
51 // 入驻回调事件处理 45 // 入驻回调事件处理
52 int result = 0; 46 int result = 0;
53 if (event.getEventType() == EnterQuitEnum.ENTER){ 47 if (event.getEventType() == EnterQuitEnum.ENTER){
54 48
  49 + EntrySellerRechargeOrder entrySellerRechargeOrder = entrySellerRechargeOrderMapper.selectByOrderCodeUid(event.getOrderCode(), event.getUid());
  50 + if (entrySellerRechargeOrder == null){
  51 + logger.info("has no invite code, uid is {}, orderCode is {}", event.getUid(), event.getOrderCode());
  52 + return;
  53 + }
  54 +
55 result = inviteService.firstEnterInviteeRecord(entrySellerRechargeOrder.getShowInviteCode(), event.getUid(), event.getOrderCode()); 55 result = inviteService.firstEnterInviteeRecord(entrySellerRechargeOrder.getShowInviteCode(), event.getUid(), event.getOrderCode());
56 } 56 }
57 // 申请退驻 57 // 申请退驻
@@ -60,7 +60,7 @@ public class InviteRecordHandler implements IEventHandler<InviteRecordEvent> { @@ -60,7 +60,7 @@ public class InviteRecordHandler implements IEventHandler<InviteRecordEvent> {
60 result = inviteService.quitInviter(event.getUid()); 60 result = inviteService.quitInviter(event.getUid());
61 } 61 }
62 62
63 - logger.info("[{}] [{}] [{}]. invite end result is {}.", entrySellerRechargeOrder.getShowInviteCode(), event.getUid(), event.getOrderCode(), result); 63 + logger.info(" [{}] [{}]. invite end result is {}.", event.getUid(), event.getOrderCode(), result);
64 64
65 65
66 } 66 }