Skip to content

Commit

Permalink
fix: afdian api error
Browse files Browse the repository at this point in the history
  • Loading branch information
long36708 committed Jan 19, 2025
1 parent ff418f7 commit 70e7b02
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion worker/src/providers/afdian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ export default async function afdianProvider(
return commonProviderHandler<AfdianResponse>({
providerName: 'afdian',
queryKey: key,
fetchUrl: `https://afdian.net/api/user/get-profile-by-slug?url_slug=${key}`,
fetchUrl: `https://afdian.com/api/user/get-profile-by-slug?url_slug=${key}`,
countObjPath: 'data.user.creator.monthly_fans',
errorMessageObjPath: 'em',
isResponseValid: d => d.ec === 200 && 'user' in d.data,
Expand Down

0 comments on commit 70e7b02

Please sign in to comment.