|
|
@@ -430,13 +430,13 @@ public class ListeningPlanServiceImpl implements ListeningPlanServiceInterface{
|
|
|
if (request.getCode() == null || request.getCode().isEmpty()) {
|
|
|
throw new BaseException("code不能为空");
|
|
|
}
|
|
|
- Integer visits = planServiceInterface.setUserVisitsToRedis(request.getUnique(), request.getCode());
|
|
|
- request.setUserVisits(visits);
|
|
|
-
|
|
|
Mono<ListeningPlanNew> code1 = template.selectOne(Query.query(Criteria.where("code")
|
|
|
.is(request.getCode())), ListeningPlanNew.class)
|
|
|
.switchIfEmpty(Mono.error(new BaseException("hello!!! code错误")))
|
|
|
.onErrorResume(throwable -> Mono.error(new BaseException(throwable.getMessage())));
|
|
|
+ // 获取用户访问次数
|
|
|
+ Integer visits = planServiceInterface.setUserVisitsToRedis(request.getUnique(), request.getCode());
|
|
|
+ request.setUserVisits(visits);
|
|
|
Mono<DataListsShare> dataListsShareMono = code1.flatMap(ftmp -> {
|
|
|
Mono<ListeningPlanNew> code = Mono.just(ftmp);
|
|
|
return Mono.zip(code, getPoster_template_id(code), getPoster(code), getPlanNewBackgroupPoster(code), getQrcode(code)).flatMap(f -> {
|