UNPKG

koishi-plugin-yunzai

Version:
133 lines (132 loc) 4.14 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.BBSApi = void 0; var BBSApi; (function (BBSApi) { /** * hostBy所指API地址 */ BBSApi.region = { cn: { takumi: 'https://api-takumi.mihoyo.com', hk4e: 'https://hk4e-api.mihoyo.com', record: 'https://api-takumi-record.mihoyo.com', }, os: { takumi: 'https://api-os-takumi.mihoyo.com', hk4e: 'https://hk4e-api-os.hoyoverse.com', record: 'https://bbs-api-os.hoyolab.com', } }; /** * act_id */ BBSApi.actId = { cn: 'e202009291139501', os: 'e202102251931481' }; /** * 请求所用的API模板 */ BBSApi.stencil = { bbsSign: { availableFor: ['cn', 'os'], hostBy: { cn: 'takumi', os: 'hk4e' }, method: 'POST', url: { cn: '/event/bbs_sign_reward/sign', os: '/event/sol/sign' }, parameters: [['act_id', String], ['region', String], ['uid', String]], cookie: true }, bbsSignHome: { availableFor: ['cn', 'os'], hostBy: { cn: 'takumi', os: 'hk4e' }, method: 'GET', url: { cn: '/event/bbs_sign_reward/home', os: '/event/sol/home' }, parameters: [['act_id', String], ['region', String], ['uid', String]], cookie: true }, bbsSignInfo: { availableFor: ['cn', 'os'], hostBy: { cn: 'takumi', os: 'hk4e' }, method: 'GET', url: { cn: '/event/bbs_sign_reward/home', os: '/event/sol/info' }, parameters: [['act_id', String], ['region', String], ['uid', String]], cookie: true }, dailyNote: { availableFor: ['cn', 'os'], hostBy: 'record', method: 'GET', url: '/game_record/app/genshin/api/dailyNote', parameters: [['role_id', String], ['server', String]], cookie: true }, abyss: { availableFor: ['cn', 'os'], hostBy: 'record', method: 'GET', url: '/game_record/app/genshin/api/spiralAbyss', parameters: [['role_id', String], ['schedule_type', Number], ['server', String]], cookie: true }, character: { availableFor: ['cn'], hostBy: 'record', method: 'POST', url: '/game_record/app/genshin/api/character', parameters: [['role_id', String], ['server', String]], cookie: true }, detail: { availableFor: ['cn', 'os'], hostBy: { cn: 'takumi', os: undefined }, method: 'GET', url: { cn: '/event/e20200928calculate/v1/sync/avatar/detail', os: 'https://sg-public-api.hoyolab.com/event/calculateos/sync/avatar/detail' }, parameters: [['lang', String, true], ['uid', String], ['region', String], ['avatar_id', String]], cookie: true }, memo: { availableFor: ['cn', 'os'], hostBy: 'hk4e', method: 'GET', url: { cn: '/event/ys_ledger/monthInfo', os: '/event/ysledgeros/month_info' }, parameters: [['month', Number], ['bind_uid', String], ['bind_region', String]], cookie: true }, genCard: { availableFor: ['cn'], hostBy: 'record', method: 'GET', url: '/game_record/app/genshin/api/character', parameters: [['role_id', String], ['server', String]], cookie: true }, }; })(BBSApi = exports.BBSApi || (exports.BBSApi = {}));