Skip to content
Snippets Groups Projects
Commit 0b7fd65f authored by spring's avatar spring
Browse files

漏了个文件

parent 0345ae84
Branches fix-OsuFile
No related merge requests found
package com.now.nowbot.service;
import com.now.nowbot.config.NowbotConfig;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient;
@Service("BsApiService")
public class BsApiService {
@Resource
WebClient webClient;
private static final String URL = NowbotConfig.BS_API_URL;
public String getOsuFile(long bid) {
return webClient.get()
.uri(URL, b -> b.path("/").build())
.header("AuthorizationX", "")
.retrieve()
.bodyToMono(String.class)
.block();
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment