miao-plugin/config/system/profile_system.js

65 lines
1.5 KiB
JavaScript
Raw Permalink 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 miaoApi = {
listApi: ({ url, uid, diyCfg, game = 'gs' }) => {
let qq = /\d{5,12}/.test(diyCfg.qq) ? diyCfg.qq : 'none'
let token = diyCfg.token
url = url || 'http://miao.games/'
return `${url}profile/data?uid=${uid}&qq=${qq}&token=${token}&version=2&game=${game}`
2022-07-27 18:36:49 +00:00
}
}
export const enkaApi = {
url: 'https://enka.network/',
userAgent: 'Miao-Plugin/3.1',
listApi: ({ url, uid, diyCfg }) => {
return `${url}api/uid/${uid}/`
}
}
export const mggApi = {
url: 'http://profile.microgg.cn/',
userAgent: 'Miao-Plugin/3.1',
2022-08-18 10:13:42 +00:00
listApi: ({ url, uid, diyCfg }) => {
return `${url}api/uid/${uid}`
2022-07-27 18:36:49 +00:00
}
}
export const hutaoApi = {
url: 'http://enka-api.hut.ao/',
userAgent: 'Snap Hutao/miao',
listApi: ({ url, uid, diyCfg }) => {
return `${url}/${uid}`
}
}
export const homoApi = {
url: 'https://api.mihomo.me/sr_info',
2023-06-08 08:45:07 +00:00
// userAgent: 'Miao-Plugin/3.1',
2023-05-14 20:19:33 +00:00
listApi: ({ url, uid, diyCfg }) => {
return `${url}/${uid}`
}
}
export const avocadoApi = {
url: 'https://avocado.wiki/v1/raw/info',
userAgent: 'Miao-Plugin/3.1',
listApi: ({ url, uid, diyCfg }) => {
return `${url}/${uid}`
}
}
export const enkaHSRApi = {
url: 'https://enka.network/',
userAgent: 'Miao-Plugin/3.1',
listApi: ({ url, uid, diyCfg }) => {
return `${url}api/hsr/uid/${uid}/`
}
}
export const requestInterval = 3
2022-08-18 10:13:42 +00:00
export const isSys = true