Skip to content

Commit

Permalink
Fix seedsToCoins (fix #1988)
Browse files Browse the repository at this point in the history
  • Loading branch information
the1812 committed Jul 1, 2021
1 parent 09d53b3 commit e77b57e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
2 changes: 1 addition & 1 deletion min/check-in-center.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 6 additions & 2 deletions src/utils/check-in-center.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,12 @@ const checkInItems: CheckInItem[] = [
icon: 'mdi-seed-outline',
name: '瓜子换硬币',
action: async () => {
const seedsToCoinsApi = 'https://api.live.bilibili.com/pay/v1/Exchange/silver2coin'
const json = await Ajax.getJsonWithCredentials(seedsToCoinsApi) as {
const seedsToCoinsApi = 'https://api.live.bilibili.com/xlive/revenue/v1/wallet/silver2coin'
const text = await Ajax.postTextWithCredentials(seedsToCoinsApi, formData({
csrf: getCsrf(),
csrf_token: getCsrf(),
}))
const json = JSON.parse(text) as {
code: number
message: string
data: {
Expand Down

0 comments on commit e77b57e

Please sign in to comment.