| 
					
				 | 
			
			
				@@ -115,7 +115,6 @@ public class RecommendService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 && redisTemplate.opsForSet().isMember("special:mid", request.getMid())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return specialMidRecommend(request); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        // log.info("sprcial mid cost={}", stopwatch.stop().elapsed(TimeUnit.MILLISECONDS)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         stopwatch.reset().start(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RecommendParam param = genRecommendParam(request, recommendType); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -127,7 +126,6 @@ public class RecommendService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                 stopwatch.stop().elapsed(TimeUnit.MILLISECONDS)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         stopwatch.reset().start(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         updateCache(request, param, videos); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-//        log.info("updateCache={}, updateCache cost={}", JSONUtils.toJson(videos), stopwatch.stop().elapsed(TimeUnit.MILLISECONDS)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         // 更新position 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         List<VideoProto> vps = new ArrayList<>(); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -168,7 +166,6 @@ public class RecommendService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         recallParam.setProvince(request.getProvince()); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RecallResult recallResult = recallService.recall(recallParam); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        log.info("recallParam {}, recallResult {}", JSONUtils.toJson(recallParam), JSONUtils.toJson(recallResult)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RankParam rankParam = new RankParam(); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         rankParam.setRecallResult(recallResult); 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -176,7 +173,6 @@ public class RecommendService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         rankParam.setSpecialRecommend(true); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         RankResult rankResult = rankRouter.rank(rankParam); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-        log.info("rankParam, rankResult {}", JSONUtils.toJson(rankParam), JSONUtils.toJson(rankResult)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (rankResult == null || CollectionUtils.isEmpty(rankResult.getVideos())) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             return RecommendResponse.newBuilder() 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -192,7 +188,6 @@ public class RecommendService { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         if (CollectionUtils.isNotEmpty(videos)) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             Video lastVideo = videos.get(videos.size() - 1); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            log.info("update recall last video  lastVideo={}", JSONUtils.toJson(lastVideo)); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             redisTemplate.opsForValue().set(lastVideo.getLastVideoKey(), String.valueOf(lastVideo.getVideoId()), 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				                     1, TimeUnit.DAYS); 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         } 
			 |