zoujiajian 1 ano atrás
pai
commit
c256398e95

+ 2 - 1
netflix-service/src/main/java/com/cyksj/service/relation/impl/GroupRelationFrontServiceImpl.java

@@ -1492,6 +1492,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 	}
 
 	@Override
+	@Transactional(rollbackFor = Throwable.class)
 	public void errorNetflixSubmitChangeOtherTicket(ErrorNetflixChangeReq req) throws Exception {
 		Long relationId = req.getRelationId();
 		Long userId = req.getUserId();
@@ -1964,7 +1965,7 @@ public class GroupRelationFrontServiceImpl implements GroupRelationFrontService
 				//1s 间隔
 				.withWaitStrategy(WaitStrategies.fixedWait(1, TimeUnit.SECONDS))
 				//停止策略 : 尝试请求1次
-				.withStopStrategy(StopStrategies.stopAfterAttempt(3)).build();
+				.withStopStrategy(StopStrategies.stopAfterAttempt(1)).build();
 		if (startTime == null) {
 			startTime = DateTime.now();
 		}