|  | @@ -1,6 +1,7 @@
 | 
	
		
			
				|  |  |  package com.zanxiang.game.back.serve.service.impl;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
 | 
	
		
			
				|  |  | +import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 | 
	
		
			
				|  |  |  import com.baomidou.mybatisplus.core.conditions.update.LambdaUpdateWrapper;
 | 
	
		
			
				|  |  |  import com.baomidou.mybatisplus.core.metadata.IPage;
 | 
	
		
			
				|  |  |  import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
 | 
	
	
		
			
				|  | @@ -15,11 +16,13 @@ import com.zanxiang.game.back.serve.dao.mapper.GameTencentRoleRegisterMapper;
 | 
	
		
			
				|  |  |  import com.zanxiang.game.back.serve.pojo.dto.GameTencentRoleRegisterDTO;
 | 
	
		
			
				|  |  |  import com.zanxiang.game.back.serve.pojo.entity.GameTencentBackLog;
 | 
	
		
			
				|  |  |  import com.zanxiang.game.back.serve.pojo.entity.GameTencentRoleRegister;
 | 
	
		
			
				|  |  | +import com.zanxiang.game.back.serve.pojo.entity.GameTencentUser;
 | 
	
		
			
				|  |  |  import com.zanxiang.game.back.serve.pojo.enums.ActionTypeEnum;
 | 
	
		
			
				|  |  |  import com.zanxiang.game.back.serve.pojo.enums.BackStatusEnum;
 | 
	
		
			
				|  |  |  import com.zanxiang.game.back.serve.pojo.vo.GameTencentRoleRegisterVO;
 | 
	
		
			
				|  |  |  import com.zanxiang.game.back.serve.service.IGameTencentBackLogService;
 | 
	
		
			
				|  |  |  import com.zanxiang.game.back.serve.service.IGameTencentRoleRegisterService;
 | 
	
		
			
				|  |  | +import com.zanxiang.game.back.serve.service.IGameTencentUserService;
 | 
	
		
			
				|  |  |  import com.zanxiang.game.module.base.ServerInfo;
 | 
	
		
			
				|  |  |  import com.zanxiang.game.module.base.pojo.vo.AgentRpcVO;
 | 
	
		
			
				|  |  |  import com.zanxiang.game.module.base.rpc.IAgentRpc;
 | 
	
	
		
			
				|  | @@ -57,6 +60,8 @@ public class GameTencentRoleRegisterServiceImpl extends ServiceImpl<GameTencentR
 | 
	
		
			
				|  |  |      private IGameTencentBackLogService gameTencentBackLogService;
 | 
	
		
			
				|  |  |      @DubboReference(providedBy = ServerInfo.SERVER_DUBBO_NAME)
 | 
	
		
			
				|  |  |      private IAgentRpc agentRpc;
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private IGameTencentUserService gameTencentUserService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      @Override
 | 
	
		
			
				|  |  |      @Transactional(rollbackFor = Exception.class)
 | 
	
	
		
			
				|  | @@ -125,6 +130,18 @@ public class GameTencentRoleRegisterServiceImpl extends ServiceImpl<GameTencentR
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |      private BackStatusEnum doCallback(GameTencentRoleRegister roleRegisterLog) {
 | 
	
		
			
				|  |  | +        GameTencentUser user = gameTencentUserService.getOne(new LambdaQueryWrapper<GameTencentUser>()
 | 
	
		
			
				|  |  | +                .eq(GameTencentUser::getGameId, roleRegisterLog.getGameId())
 | 
	
		
			
				|  |  | +                .eq(GameTencentUser::getWechatAppId, roleRegisterLog.getWechatAppId())
 | 
	
		
			
				|  |  | +                .eq(GameTencentUser::getWechatOpenid, roleRegisterLog.getWechatOpenid())
 | 
	
		
			
				|  |  | +                .eq(GameTencentUser::getAdAccountId, roleRegisterLog.getAdAccountId())
 | 
	
		
			
				|  |  | +                .last("limit 1")
 | 
	
		
			
				|  |  | +        );
 | 
	
		
			
				|  |  | +        if (user != null) {
 | 
	
		
			
				|  |  | +            if (BackStatusEnum.NO.getBackStatus().equals(user.getIsBack())) {
 | 
	
		
			
				|  |  | +                gameTencentUserService.userBack(user, true);
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          Map<String, Object> actionParam = new HashMap<>(2);
 | 
	
		
			
				|  |  |          actionParam.put("claim_type", 0);
 | 
	
		
			
				|  |  |          DataReportOfAppIdRpcDTO dataReportOfAppIdRpcDTO = DataReportOfAppIdRpcDTO.builder()
 |