Showing
1 changed file
with
5 additions
and
5 deletions
@@ -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 | + // 入驻回调事件处理 | ||
46 | + int result = 0; | ||
47 | + if (event.getEventType() == EnterQuitEnum.ENTER){ | ||
48 | + | ||
45 | EntrySellerRechargeOrder entrySellerRechargeOrder = entrySellerRechargeOrderMapper.selectByOrderCodeUid(event.getOrderCode(), event.getUid()); | 49 | EntrySellerRechargeOrder entrySellerRechargeOrder = entrySellerRechargeOrderMapper.selectByOrderCodeUid(event.getOrderCode(), event.getUid()); |
46 | if (entrySellerRechargeOrder == null){ | 50 | if (entrySellerRechargeOrder == null){ |
47 | logger.info("has no invite code, uid is {}, orderCode is {}", event.getUid(), event.getOrderCode()); | 51 | logger.info("has no invite code, uid is {}, orderCode is {}", event.getUid(), event.getOrderCode()); |
48 | return; | 52 | return; |
49 | } | 53 | } |
50 | 54 | ||
51 | - // 入驻回调事件处理 | ||
52 | - int result = 0; | ||
53 | - if (event.getEventType() == EnterQuitEnum.ENTER){ | ||
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 | } |
-
Please register or login to post a comment