Skip to content

Commit

Permalink
fix: change afdian api domain
Browse files Browse the repository at this point in the history
temporarily change afdian.com
  • Loading branch information
sxzz committed Jul 18, 2024
1 parent 1c6acd5 commit 5077c27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/providers/afdian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export async function fetchAfdianSponsors(options: SponsorkitConfig['afdian'] =
throw new Error('Afdian id and token are required')

const sponsors: any[] = []
const sponsorshipApi = 'https://afdian.net/api/open/query-sponsor'
const sponsorshipApi = 'https://afdian.com/api/open/query-sponsor'
let page = 1
let pages = 1
do {
Expand Down Expand Up @@ -83,7 +83,7 @@ export async function fetchAfdianSponsors(options: SponsorkitConfig['afdian'] =
login: raw.user.user_id,
name,
avatarUrl,
linkUrl: `https://afdian.net/u/${raw.user.user_id}`,
linkUrl: `https://afdian.com/u/${raw.user.user_id}`,
},
// all_sum_amount is based on cny
monthlyDollars: isExpired
Expand Down

0 comments on commit 5077c27

Please sign in to comment.