|
@@ -44,11 +44,15 @@ implements IGameTencentAppCallbackService {
|
|
|
AgentRpcVO agent = agentRpc.getByTencentAccountId(dto.getAccountId()).getData();
|
|
|
if (agent == null) {
|
|
|
log.error("腾讯检测链接数据找不到渠道:{}", JsonUtil.toString(dto));
|
|
|
- return false;
|
|
|
}
|
|
|
GameTencentAppCallback appCallback = BeanUtil.copy(dto, GameTencentAppCallback.class);
|
|
|
- appCallback.setAgentKey(agent.getAgentKey());
|
|
|
- appCallback.setGameId(agent.getGameId());
|
|
|
+ if (agent != null) {
|
|
|
+ appCallback.setAgentKey(agent.getAgentKey());
|
|
|
+ appCallback.setGameId(agent.getGameId());
|
|
|
+ } else {
|
|
|
+ appCallback.setAgentKey("-");
|
|
|
+ appCallback.setGameId(-1L);
|
|
|
+ }
|
|
|
appCallback.setDay(dto.getClickTime() == null || dto.getClickTime() < 1000 ? LocalDate.now() : DateUtil.milliToLocalDateTime(dto.getClickTime()).toLocalDate());
|
|
|
save(appCallback);
|
|
|
try {
|