mirror of
https://github.com/yoimiya-kokomi/miao-plugin.git
synced 2024-11-16 04:35:42 +00:00
The API route has been updated. (#441)
This commit is contained in:
parent
df3e645cf1
commit
c782bb0025
@ -25,11 +25,7 @@ export const enkaApi = {
|
||||
url: 'https://enka.network/',
|
||||
userAgent: 'Miao-Plugin/3.0',
|
||||
listApi: ({ url, uid, diyCfg }) => {
|
||||
let api = `${url}u/${uid}/__data.json`
|
||||
if (diyCfg?.apiKey) {
|
||||
api += '?key=' + diyCfg.apiKey
|
||||
}
|
||||
return api
|
||||
return api `${url}api/uid/${uid}/`
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user