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 = {
|
2023-05-19 18:50:39 +00:00
|
|
|
|
listApi: ({ url, uid, diyCfg, game = 'gs' }) => {
|
2022-11-09 21:25:19 +00:00
|
|
|
|
let qq = /\d{5,12}/.test(diyCfg.qq) ? diyCfg.qq : 'none'
|
|
|
|
|
let token = diyCfg.token
|
2023-06-06 20:45:52 +00:00
|
|
|
|
url = url || 'http://miao.games/'
|
2023-05-19 18:50:39 +00:00
|
|
|
|
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 = {
|
2022-08-03 17:51:48 +00:00
|
|
|
|
url: 'https://enka.network/',
|
2023-02-23 19:23:57 +00:00
|
|
|
|
userAgent: 'Miao-Plugin/3.1',
|
|
|
|
|
listApi: ({ url, uid, diyCfg }) => {
|
|
|
|
|
return `${url}api/uid/${uid}/`
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
export const mggApi = {
|
2023-02-27 13:28:57 +00:00
|
|
|
|
url: 'http://profile.microgg.cn/',
|
2023-02-23 19:23:57 +00:00
|
|
|
|
userAgent: 'Miao-Plugin/3.1',
|
2022-08-18 10:13:42 +00:00
|
|
|
|
listApi: ({ url, uid, diyCfg }) => {
|
2023-02-06 13:49:47 +00:00
|
|
|
|
return `${url}api/uid/${uid}/`
|
2022-07-27 18:36:49 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
2022-07-30 20:20:10 +00:00
|
|
|
|
|
2023-04-13 18:56:44 +00:00
|
|
|
|
export const hutaoApi = {
|
|
|
|
|
url: 'http://enka-api.hut.ao/',
|
|
|
|
|
userAgent: 'Snap Hutao/miao',
|
|
|
|
|
listApi: ({ url, uid, diyCfg }) => {
|
|
|
|
|
return `${url}/${uid}/`
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-05-19 18:50:39 +00:00
|
|
|
|
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}`
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-13 18:56:44 +00:00
|
|
|
|
export const requestInterval = 3
|
2022-08-18 10:13:42 +00:00
|
|
|
|
|
|
|
|
|
export const isSys = true
|