|
@@ -79,7 +79,7 @@ public class CallBackServiceImpl implements ICallBackService {
|
|
|
}
|
|
|
//查询小游戏信息或者H5游戏相关公众号信息
|
|
|
GameApplet gameApplet = gameAppletService.getOne(new LambdaQueryWrapper<GameApplet>()
|
|
|
- .eq(GameApplet::getGameId, user.getGameId()));
|
|
|
+ .eq(GameApplet::getGameId, agent.getGameId()));
|
|
|
log.error("用户注册回传, userId : {}", user.getId());
|
|
|
try {
|
|
|
//腾讯H5回传
|
|
@@ -128,7 +128,7 @@ public class CallBackServiceImpl implements ICallBackService {
|
|
|
}
|
|
|
//查询小游戏信息或者H5游戏相关公众号信息
|
|
|
GameApplet gameApplet = gameAppletService.getOne(new LambdaQueryWrapper<GameApplet>()
|
|
|
- .eq(GameApplet::getGameId, user.getGameId()));
|
|
|
+ .eq(GameApplet::getGameId, agent.getGameId()));
|
|
|
log.error("用户创角回传, userId : {}", user.getId());
|
|
|
try {
|
|
|
//腾讯H5回传
|
|
@@ -175,7 +175,7 @@ public class CallBackServiceImpl implements ICallBackService {
|
|
|
}
|
|
|
//查询小游戏信息或者H5游戏相关公众号信息
|
|
|
GameApplet gameApplet = gameAppletService.getOne(new LambdaQueryWrapper<GameApplet>()
|
|
|
- .eq(GameApplet::getGameId, user.getGameId()));
|
|
|
+ .eq(GameApplet::getGameId, agent.getGameId()));
|
|
|
log.error("用户订单回传, orderId : {}", platformOrderDTO.getOrderId());
|
|
|
try {
|
|
|
//腾讯H5回传
|
|
@@ -211,7 +211,7 @@ public class CallBackServiceImpl implements ICallBackService {
|
|
|
private TencentRoleRegisterRpcDTO transform(User user, Agent agent, GameApplet gameApplet, GameUserRole gameUserRole) {
|
|
|
return TencentRoleRegisterRpcDTO.builder()
|
|
|
.backPolicyId(agent.getBackPolicyId())
|
|
|
- .gameId(gameUserRole.getGameId())
|
|
|
+ .gameId(agent.getGameId())
|
|
|
.adAccountId(agent.getAccountId())
|
|
|
.registerTime(gameUserRole.getCreateTime())
|
|
|
.channel(agent.getAgentKey())
|
|
@@ -230,7 +230,7 @@ public class CallBackServiceImpl implements ICallBackService {
|
|
|
.reportUrl(agent.getReportUrl())
|
|
|
.build();
|
|
|
return TtRoleRegisterRpcDTO.builder()
|
|
|
- .gameId(gameUserRole.getGameId())
|
|
|
+ .gameId(agent.getGameId())
|
|
|
.backPolicyId(agent.getBackPolicyId())
|
|
|
.accountReport(ttAccountRpcDTO)
|
|
|
.wechatAppId(gameApplet == null ? null : gameApplet.getAppId())
|
|
@@ -245,7 +245,7 @@ public class CallBackServiceImpl implements ICallBackService {
|
|
|
private TencentUserDTO transform(User user, Agent agent, GameApplet gameApplet) {
|
|
|
return TencentUserDTO.builder()
|
|
|
.backPolicyId(agent.getBackPolicyId())
|
|
|
- .gameId(user.getGameId())
|
|
|
+ .gameId(agent.getGameId())
|
|
|
.adAccountId(agent.getAccountId())
|
|
|
.registerTime(user.getCreateTime())
|
|
|
.channel(agent.getAgentKey())
|
|
@@ -262,7 +262,7 @@ public class CallBackServiceImpl implements ICallBackService {
|
|
|
.reportUrl(agent.getReportUrl())
|
|
|
.build();
|
|
|
return TtUserActiveRpcDTO.builder()
|
|
|
- .gameId(user.getGameId())
|
|
|
+ .gameId(agent.getGameId())
|
|
|
.wechatAppId(gameApplet == null ? null : gameApplet.getAppId())
|
|
|
.wechatOpenId(user.getOpenId())
|
|
|
.accountReport(ttAccountRpcDTO)
|
|
@@ -279,7 +279,7 @@ public class CallBackServiceImpl implements ICallBackService {
|
|
|
private TencentOrderDTO transform(PlatformOrderDTO platformOrderDTO, User user, Agent agent, GameApplet gameApplet) {
|
|
|
return TencentOrderDTO.builder()
|
|
|
.backPolicyId(agent.getBackPolicyId())
|
|
|
- .gameId(platformOrderDTO.getGameId())
|
|
|
+ .gameId(agent.getGameId())
|
|
|
.adAccountId(agent.getAccountId())
|
|
|
.registerTime(user.getCreateTime())
|
|
|
.rechargeMoney(platformOrderDTO.getAmount().longValue() * 100)
|
|
@@ -303,7 +303,7 @@ public class CallBackServiceImpl implements ICallBackService {
|
|
|
.reportUrl(agent.getReportUrl())
|
|
|
.build();
|
|
|
return TtOrderRpcDTO.builder()
|
|
|
- .gameId(platformOrderDTO.getGameId())
|
|
|
+ .gameId(agent.getGameId())
|
|
|
.accountReport(ttAccountRpcDTO)
|
|
|
.wechatAppId(gameApplet == null ? null : gameApplet.getAppId())
|
|
|
.wechatOpenId(openId)
|