Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Y
yumu-bot
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
bot
yumu-bot
Commits
0b7fd65f
Commit
0b7fd65f
authored
1 year ago
by
spring
Browse files
Options
Downloads
Patches
Plain Diff
漏了个文件
parent
0345ae84
Branches
fix-OsuFile
No related merge requests found
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/com/now/nowbot/service/BsApiService.java
+22
-0
22 additions, 0 deletions
src/main/java/com/now/nowbot/service/BsApiService.java
with
22 additions
and
0 deletions
src/main/java/com/now/nowbot/service/BsApiService.java
0 → 100644
+
22
−
0
View file @
0b7fd65f
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
();
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment