miao-plugin/config/system/profile.js

31 lines
754 B
JavaScript
Raw Normal View History

2022-07-27 18:36:49 +00:00
/*
* 此配置文件为系统使用请勿修改否则可能无法正常使用
2022-07-28 14:53:17 +00:00
* 如需自定义配置请复制修改上一级profile_default.js
2022-07-27 18:36:49 +00:00
* */
export const profileApi = ({ uid, Miao, Enka }) => {
if ((uid + '')[0] === '5') {
return Miao
}
return Enka
}
export const miaoApi = {
url: 'http://49.232.91.210/profile',
token: 'miao-token',
listApi: ({ url, uid, token }) => {
return `${url}/list?uid=${uid}&token=${token}`
},
detailApi: ({ url, uid, avatar, token }) => {
return `${url}/detail?uid=${uid}&avatar=${avatar}&token=${token}`
}
}
export const enkaApi = {
url: 'https://enka.shinshin.moe/',
userAgent: 'Miao-Plugin/3.0',
2022-07-27 18:36:49 +00:00
listApi: ({ url, uid }) => {
return `${url}u/${uid}/__data.json`
}
}