|
|
@ -85,6 +85,8 @@ public class IndexController {
|
|
|
|
@GetMapping("showData")
|
|
|
|
@GetMapping("showData")
|
|
|
|
@ApiOperation("展示数据")
|
|
|
|
@ApiOperation("展示数据")
|
|
|
|
public AjaxResult showWbSearch() throws ExecutionException, InterruptedException {
|
|
|
|
public AjaxResult showWbSearch() throws ExecutionException, InterruptedException {
|
|
|
|
|
|
|
|
Map<Object, Object> map = null;
|
|
|
|
|
|
|
|
try {
|
|
|
|
CompletableFuture<List<ApiTopsearchWeibo>> weiboListFuture = CompletableFuture.supplyAsync(() ->
|
|
|
|
CompletableFuture<List<ApiTopsearchWeibo>> weiboListFuture = CompletableFuture.supplyAsync(() ->
|
|
|
|
apiTopsearchWeiboService.showWbSearch(), executor);
|
|
|
|
apiTopsearchWeiboService.showWbSearch(), executor);
|
|
|
|
|
|
|
|
|
|
|
@ -119,7 +121,7 @@ public class IndexController {
|
|
|
|
ipInfoFuture
|
|
|
|
ipInfoFuture
|
|
|
|
).get();
|
|
|
|
).get();
|
|
|
|
|
|
|
|
|
|
|
|
Map<Object, Object> map = MapUtil.builder()
|
|
|
|
map = MapUtil.builder()
|
|
|
|
.put("weiboList", weiboListFuture.get())
|
|
|
|
.put("weiboList", weiboListFuture.get())
|
|
|
|
.put("networkDTOList", networkDTOListFuture.get())
|
|
|
|
.put("networkDTOList", networkDTOListFuture.get())
|
|
|
|
.put("yunList", yunListFuture.get())
|
|
|
|
.put("yunList", yunListFuture.get())
|
|
|
@ -131,6 +133,9 @@ public class IndexController {
|
|
|
|
.put("beautyPicture", beautyPictureFuture.get())
|
|
|
|
.put("beautyPicture", beautyPictureFuture.get())
|
|
|
|
.put("ipInfo", ipInfoFuture.get())
|
|
|
|
.put("ipInfo", ipInfoFuture.get())
|
|
|
|
.build();
|
|
|
|
.build();
|
|
|
|
|
|
|
|
} catch (Exception e) {
|
|
|
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
|
|
|
}
|
|
|
|
return AjaxResult.success(map);
|
|
|
|
return AjaxResult.success(map);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|