diff --git a/data/api_config.json b/data/jx3api_config.json similarity index 75% rename from data/api_config.json rename to data/jx3api_config.json index 5e3a95a..e56ce95 100644 --- a/data/api_config.json +++ b/data/jx3api_config.json @@ -1,30 +1,192 @@ { - "jx3_richang":{ - "url":"https://www.jx3api.com/data/active/calendar", - "method":"GET", - "description":"获取剑网三日常任务", + "jx3api_url":"https://www.jx3api.com", + "active_calendar":{ + "url":"/active/calendar", + "description":"单日或前后区间的日常活动推演", "params":{ - "server": "眉间雪", - "num": 0 + "mode": "day", + "num": "0" } }, - "jx3_richangyuche":{ - "url":"https://www.jx3api.com/data/active/list/calendar", - "method":"GET", - "description":"该 API 用于预测每天的日常任务,您可以通过指定时间范围来获取相关任务数据。", - "params":{ - "num": "30" - } - }, - "jx3_xingxiashijian":{ - "url":"https://www.jx3api.com/data/active/celebs", - "method":"GET", - "description":"查询当前时间的楚天社或云从社的进度。", + "active_celebs":{ + "url":"/active/celebs", + "description":"楚天社 / 云从社 / 披风会接下来 10 条排期", "params":{ "name": "穹野卫" } }, - "jx3_keju":{ + "castle":{ + "url":"/castle/status", + "description":"各服关隘首领的当前状态(可拾取 / 保护期 / 可抢占 / 每日 7-12 点统一保护),按服务器分组", + "params":{ + "token": "" + } + }, + "chitu_records":{ + "url":"/chitu/records", + "description":"查 ranch 合集当天的赤兔记录", + "params":{ + "token": "" + } + }, + "chitu_week_records":{ + "url":"/chitu/week/records", + "description":"爬 jx3box 播报,解析各服本周(周二 7 点重置后)赤兔到达地图", + "params":{ + "token": "" + } + }, + "fenxian":{ + "url":"/fenxian/records", + "description":"点争夺记录,按占领时间倒序;给了阵营名则只看该阵营", + "params":{ + "name": "", + "limit": 50, + "token": "" + } + }, + "firework":{ + "url":"/firework/records", + "description":"角色作为送花人或收花人的烟花记录,时间倒序", + "params":{ + "server": "", + "name": "", + "token":"" + } + }, + "ranch_chat":{ + "url":"/ranch/chat", + "description":"爬 jx3box 马场 NPC 播报,解析各地图「下一匹 X 出世还有 N 分钟」的预计时刻", + "params":{ + "server": "", + "token": "" + } + }, + "ranch_records":{ + "url":"/ranch/records", + "description":"jx3box 马场播报预告 + 本周期赤兔(mount)/ 的卢(steed)出世情况,附提示", + "params":{ + "server": "", + "expired": "", + "token": "" + } + }, + "arena_awesome":{ + "url":"/arena/awesome", + "description":"某比赛模式竞技场排行榜前 limit 名", + "params":{ + "limit": "50", + "mode": "33", + "ticket": "", + "token":"" + } + }, + "arena_recent":{ + "url":"/arena/recent", + "description":"角色竞技场名片、各模式战绩表现、历史对战,指定模式时附趋势", + "params":{ + "server": "", + "name": "", + "mode": "33", + "ticket": "", + "token":"" + } + }, + "arena_schools":{ + "url":"/arena/schools", + "description":"某比赛模式下各门派的竞技场周统计", + "params":{ + "mode": "33", + "ticket": "", + "token":"" + } + }, + "rank_arena":{ + "url":"/rank/arena", + "description":"按竞技模式(0=2v2 / 1=3v3 / 2=5v5)查军团赛季战绩榜;指定服查单服,否则全服", + "params":{ + "server": "", + "mode": "", + "token":"" + } + }, + "rank_championship":{ + "url":"/rank/arena", + "description":"按阵营(1=浩气 / 2=恶人)查帮会争霸赛季榜(与名剑榜共用 season 合集,每赛季清零)", + "params":{ + "server": "", + "camp": "", + "token":"" + } + }, + "rank_constable":{ + "url":"/rank/constable", + "description":"与江湖浪客榜同字段格式(bounty 合集)", + "params":{ + "server": "", + "token":"" + } + }, + "rank_outlaw":{ + "url":"/rank/outlaw", + "description":"实时榜(bounty 合集),显式列字段,nRank 排名序号不返回", + "params":{ + "server": "", + "token":"" + } + }, + "rank_statistics":{ + "url":"/rank/outlaw", + "description":"指定服查该服该榜单,否则查全服该榜单", + "params":{ + "server": "", + "name": "", + "token":"" + } + }, + "rank_trials":{ + "url":"/rank/trials", + "description":"同榜单查询,山居剑意归并到藏剑;行是位置字段 1~4,重建成具名字段", + "params":{ + "server": "", + "name": "", + "token":"" + } + }, + "rank_wanted":{ + "url":"/rank/wanted", + "description":"按类型(1=公开 / 2=私密)查决斗悬赏榜(bounty 合集,mode 存的是字符串)", + "params":{ + "server": "", + "mode": "", + "token":"" + } + }, + "tuilan_achievement":{ + "url":"/rank/wanted", + "description":"角色名片 + 按 子类/详情/地图/副本 汇总的资历完成度 静态骨架(各桶 total + 排序 + totalScore)按 class 缓存,每次请求只查用户已完成子集叠加 speed", + "params":{ + "server": "", + "name": "", + "class": "", + "subclass": "", + "ticket": "", + "token":"" + } + }, + + + + + + + + + + + + + "keju":{ "url":"https://www.jx3api.com/data/exam/search", "method":"GET", "description":"此接口用于科举考试时的答案查询,支持模糊查询和拼音首字母查询。", @@ -33,7 +195,7 @@ "limit": "5" } }, - "jx3_huajia":{ + "huajia":{ "url":"https://www.jx3api.com/data/home/flower", "method":"GET", "description":"此接口用于查询家园系统中特定鲜花的最高价格及其对应的采集线路,包括区服和地图信息。", @@ -43,7 +205,7 @@ "map": "" } }, - "jx3_zhuangshi":{ + "zhuangshi":{ "url":"https://www.jx3api.com/data/home/furniture", "method":"GET", "description":"此接口用于查询家园系统中特定装饰的详细信息,包括来源、属性和外观等内容。", @@ -51,7 +213,7 @@ "name": "" } }, - "jx3_qiwu":{ + "qiwu":{ "url":"https://www.jx3api.com/data/home/travel", "method":"GET", "description":"此接口用于查询指定地图的装饰物品产出信息,包括装饰的属性、来源和外观等内容。", @@ -59,7 +221,7 @@ "name": "" } }, - "jx3_xinweng":{ + "xinweng":{ "url":"https://www.jx3api.com/data/news/allnews", "method":"GET", "description":"此接口用于获取官方最新公告及新闻内容,包括新闻分类、标题及链接等信息。", @@ -67,7 +229,7 @@ "limit": 1 } }, - "jx3_weihu":{ + "weihu":{ "url":"https://www.jx3api.com/data/news/announce", "method":"GET", "description":"获取《剑网3》官方发布的最新维护与版本更新公告列表,包含公告标题、发布日期及原文链接", @@ -75,7 +237,7 @@ "limit": 1 } }, - "jx3_qufu":{ + "qufu":{ "url":"https://www.jx3api.com/data/master/search", "method":"GET", "description":"此接口用于根据区服简称搜索主服务器及其附属服务器的详细信息", @@ -83,7 +245,7 @@ "name": "双梦镇" } }, - "jx3_zhuangtai":{ + "zhuangtai":{ "url":"https://www.jx3api.com/data/status/check", "method":"GET", "description":"此接口用于根据区服简称搜索主服务器及其附属服务器的详细信息", @@ -92,21 +254,21 @@ "server": "" } }, - "jx3_jigai":{ + "jigai":{ "url":"https://www.jx3api.com/data/skill/rework", "method":"GET", "description":"获取剑网三技能记录", "params":{ } }, - "jx3_xiaoyao":{ + "xiaoyao":{ "url":"https://www.jx3api.com/data/school/foods", "method":"GET", "description":"小药", "params":{ } }, - "jx3_zhenyan":{ + "zhenyan":{ "url":"https://www.jx3api.com/data/school/matrix", "method":"GET", "description":"查询指定心法的阵眼效果", @@ -116,7 +278,7 @@ "token":"" } }, - "jx3_qixue":{ + "qixue":{ "url":"https://www.jx3api.com/data/school/talent", "method":"GET", "description":"查询指定心法的奇穴详细效果", @@ -126,7 +288,7 @@ "token":"" } }, - "jx3_jineng":{ + "jineng":{ "url":"https://www.jx3api.com/data/school/skills", "method":"GET", "description":"查询指定心法的技能详情", @@ -136,7 +298,7 @@ "token":"" } }, - "jx3_zilipaixing":{ + "zilipaixing":{ "url":"https://www.jx3api.com/data/school/seniority", "method":"GET", "description":"查询指定门派的资历排行榜", @@ -147,7 +309,7 @@ "token":"" } }, - "jx3_shilianpaixing":{ + "shilianpaixing":{ "url":"https://www.jx3api.com/data/rank/trials", "method":"GET", "description":"查询指定心法的木桩试炼排行榜", @@ -157,7 +319,7 @@ "token":"" } }, - "jx3_shaohua":{ + "shaohua":{ "url":"https://www.jx3api.com/data/saohua/random", "method":"GET", "description":"获取剑网三骚话", @@ -165,7 +327,7 @@ "name": "万花" } }, - "jx3_jiemi":{ + "jiemi":{ "url":"https://www.jx3api.com/data/mech/calculator", "method":"GET", "description":"查询机关解密结果", @@ -173,7 +335,7 @@ "token": "" } }, - "aijx3_shapan":{ + "aishapan":{ "url":"https://www.jianxiachaguan.cn/api2/aijx3-jxcg/game/get-sand-table-img", "method":"POST", "description":"获取剑网三沙盘状态", @@ -181,7 +343,7 @@ "serverName": "眉间雪" } }, - "jx3_baizhan":{ + "baizhan":{ "url":"https://www.jx3api.com/data/active/monster", "method":"GET", "description":"获取本周百战异闻录玩法中刷新的首领列表及其特殊技能效果", @@ -189,7 +351,7 @@ "token":"" } }, - "jx3_fuyaojiutian":{ + "fuyaojiutian":{ "url":"https://www.jx3api.com/data/active/next/event", "method":"GET", "description":"获取某区服扶摇九天的下次开启时间", @@ -198,7 +360,7 @@ "token": "" } }, - "jx3_zhueevent":{ + "zhueevent":{ "url":"https://www.jx3api.com/data/smite/records", "method":"GET", "description":"查询诛恶事件记录", @@ -206,23 +368,7 @@ "token": "" } }, - "jx3_benrichitu":{ - "url":"https://www.jx3api.com/data/chitu/records", - "method":"GET", - "description":"查询本日赤兔记录", - "params":{ - "token": "" - } - }, - "jx3_benzhouchitu":{ - "url":"https://www.jx3api.com/data/chitu/week/records", - "method":"GET", - "description":"查询本周赤兔记录", - "params":{ - "token": "" - } - }, - "jx3_zhengyingpaimai":{ + "zhengyingpaimai":{ "url":"https://www.jx3api.com/data/auction/records", "method":"GET", "description":"此接口用于查询阵营拍卖的记录,包括拍卖的物品名称、金额以及相关信息。支持通过区服名称和物品名称进行精确或模糊查询。", @@ -233,23 +379,7 @@ "token": "" } }, - "jx3_zhenyingevent":{ - "url":"https://www.jx3api.com/data/fenxian/records", - "method":"GET", - "description":"查询跨服阵营事件记录", - "params":{ - "token": "" - } - }, - "jx3_guanaishouling":{ - "url":"https://www.jx3api.com/data/mine/cart", - "method":"GET", - "description":"查询各服务器关隘首领刷新记录", - "params":{ - "token": "" - } - }, - "jx3_bangzhanjilu":{ + "bangzhanjilu":{ "url":"https://www.jx3api.com/data/battle/records", "method":"GET", "description":"查询指定服务器帮战记录", @@ -258,7 +388,7 @@ "token": "" } }, - "jx3_tongzhanyy":{ + "tongzhanyy":{ "url":"https://www.jx3api.com/data/duowan/statistics", "method":"GET", "description":"查询指定服务器统战歪歪信息", @@ -267,7 +397,7 @@ "token": "" } }, - "jx3_dilujilu":{ + "dilujilu":{ "url":"https://www.jx3api.com/data/steed/records", "method":"GET", "description":"此接口用于查询的卢马的刷新、捕获及拍卖记录,包括捕获者、拍卖价格及相关时间信息", @@ -276,17 +406,7 @@ "token":"" } }, - "jx3_yanhuachaxun":{ - "url":"https://www.jx3api.com/data/show/records", - "method":"GET", - "description":"此接口用于查询烟花赠送与接收的历史记录,数据可能存在遗漏", - "params":{ - "server": "唯我独尊", - "name": "萝莉", - "token":"" - } - }, - "jx3_pianzhi":{ + "pianzhi":{ "url":"https://www.jx3api.com/data/fraud/detailed", "method":"GET", "description":"此接口用于通过用户的 QQ 号搜索其在贴吧上的行骗记录,包括贴吧名称、记录标题和详细内容。", @@ -295,7 +415,7 @@ "token": "" } }, - "jx3_juesheqiyu":{ + "juesheqiyu":{ "url":"https://www.jx3api.com/data/event/records", "method":"GET", "description":"此接口用于查询指定角色的奇遇触发记录,包括奇遇事件、状态及触发时间。注意,数据可能存在遗漏", @@ -305,7 +425,7 @@ "token":"" } }, - "jx3_weizuoqiyu":{ + "weizuoqiyu":{ "url":"https://www.jx3api.com/data/event/unfinished", "method":"GET", "description":"此接口用于查询指定角色未做奇遇记录,数据可能存在遗漏", @@ -315,7 +435,7 @@ "token":"" } }, - "jx3_qiyutongji":{ + "qiyutongji":{ "url":"https://www.jx3api.com/data/event/statistics", "method":"POST", "description":"获取剑网三某区服奇遇触发记录", @@ -326,7 +446,7 @@ "token": "" } }, - "jx3_jinqiqiyu":{ + "jinqiqiyu":{ "url":"https://www.jx3api.com/data/event/recent", "method":"GET", "description":"查询指定服务器最近触发的奇遇记录列表", @@ -335,7 +455,7 @@ "token": "" } }, - "jx3_qiyuhuizong":{ + "qiyuhuizong":{ "url":"https://www.jx3api.com/data/event/collect", "method":"GET", "description":"统计指定服务器最近一段时间内各类奇遇触发汇总", @@ -345,40 +465,9 @@ "token": "" } }, - "jx3_zhanji":{ - "url":"https://www.jx3api.com/data/arena/recent", - "method":"GET", - "description":"此接口用于查询角色近期的名剑战绩记录,包括角色基本信息、战绩详情以及比赛趋势。", - "params":{ - "server": "梦江南", - "name": "飞翔大野猪", - "mode": "33", - "ticket": "", - "token":"" - } - }, - "jx3_mingjianpaihang":{ - "url":"https://www.jx3api.com/data/arena/awesome", - "method":"GET", - "description":"查询名剑大会的排行榜信息,包括玩家排名、分数、胜率等详细竞技数据", - "params":{ - "limit": "50", - "mode": "33", - "ticket": "", - "token":"" - } - }, - "jx3_mingjiantongji":{ - "url":"https://www.jx3api.com/data/arena/schools", - "method":"GET", - "description":"统计全服名剑大会各门派当前赛季与上赛季数量", - "params":{ - "mode": "33", - "ticket": "", - "token":"" - } - }, - "jx3_tuanduizhaomu":{ + + + "tuanduizhaomu":{ "url":"https://www.jx3api.com/data/recruit/search", "method":"GET", "description":"此接口用于查询指定区服的团队招募信息,包括活动类型、队长信息及当前队伍状态。", @@ -389,7 +478,7 @@ "token":"" } }, - "jx3_shitu":{ + "shitu":{ "url":"https://www.jx3api.com/data/mentor/search", "method":"GET", "description":"查询游戏内师徒系统拜师/收徒招募信息", @@ -400,7 +489,7 @@ "token":"" } }, - "jx3_rank_statistical":{ + "rank_statistical":{ "url":"https://www.jx3api.com/data/rank/statistics", "method":"GET", "description":"查询全服或指定服务器的各类游戏内榜单数据", @@ -410,7 +499,7 @@ "token":"" } }, - "jx3_jueshexinxi":{ + "jueshexinxi":{ "url":"https://www.jx3api.com/data/role/detail", "method":"GET", "description":"获取角色信息", @@ -420,7 +509,7 @@ "token": "" } }, - "jx3_jieshemingpian":{ + "jieshemingpian":{ "url":"https://www.jx3api.com/data/card/record", "method":"GET", "description":"此接口用于查询指定角色的名片墙信息,包括角色展示图片和展示数据的唯一标识。", @@ -430,7 +519,7 @@ "token":"" } }, - "jx3_jingnai":{ + "jingnai":{ "url":"https://www.jx3api.com/data/role/monster", "method":"GET", "description":"查询指定角色在百战异闻录玩法中的精力、耐力数值和已习得技能列表", @@ -440,7 +529,7 @@ "token":"" } }, - "jx3_allmingpian":{ + "allmingpian":{ "url":"https://www.jx3api.com/data/card/records", "method":"GET", "description":"获取角色全部名片", @@ -450,7 +539,7 @@ "token": "" } }, - "jx3_shuijimingpian":{ + "shuijimingpian":{ "url":"https://www.jx3api.com/data/card/random", "method":"GET", "description":"此接口用于随机读取一张符合条件的角色名片。", @@ -461,7 +550,7 @@ "token":"" } }, - "jx3_jinjia":{ + "jinjia":{ "url":"https://www.jx3api.com/data/trade/demon", "method":"GET", "description":"金价比例信息", @@ -471,7 +560,7 @@ "token":"" } }, - "jx3_waiguan":{ + "waiguan":{ "url":"https://www.jx3api.com/data/trade/item/search", "method":"GET", "description":"统计外观物品的模糊搜索结果", @@ -480,7 +569,7 @@ "token":"" } }, - "jx3_wujia":{ + "wujia":{ "url":"https://www.jx3api.com/data/trade/records", "method":"GET", "description":"此接口用于统计指定物品的黑市价格信息,包括成交、出售、收购等详细记录。", @@ -490,7 +579,7 @@ "token":"" } }, - "jx3_jiaoyihang":{ + "jiaoyihang":{ "url":"https://next2.jx3box.com/api/auction/", "method":"POST", "description":"获取剑网三区服交易行物品价格数据", @@ -508,7 +597,7 @@ "client": "std" } }, - "jx3_tiebawujia":{ + "tiebawujia":{ "url":"https://www.jx3api.com/data/tieba/item/records", "method":"GET", "description":"查询指定物品的贴吧价格记录", @@ -519,7 +608,7 @@ "token": "" } }, - "jx3_diaoluo":{ + "diaoluo":{ "url":"https://www.jx3api.com/data/reward/statistics", "method":"GET", "description":"统计全服或指定服务器中特定贵重物品在团队秘境中的掉落记录", @@ -530,16 +619,8 @@ "token": "" } }, - "jx3_shuama":{ - "url":"https://www.jx3api.com/data/ranch/records", - "method":"GET", - "description":"获取某区服坐骑刷新时间", - "params":{ - "server": "梦江南", - "token": "" - } - }, - "jx3_bagua":{ + + "bagua":{ "url":"https://www.jx3api.com/data/tieba/random", "method":"GET", "description":"此接口用于随机搜索指定分类的贴吧帖子,支持多种分类查询。", diff --git a/main.py b/main.py index d46ca37..718b843 100644 --- a/main.py +++ b/main.py @@ -108,7 +108,7 @@ class Jx3ApiPlugin(Star): # SQLite插件路径 self.plugin_data_path = self.plugin_data_dir /"plugin_data.db" # API配置文件路径 - self.api_data_path = self.plugin_data_dir / "api_config.json" + self.api_data_path = self.plugin_data_dir / "jx3api_config.json" # 图片文件路径 self.plugin_temp_img = self.plugin_temp_dir / "img" self.plugin_temp_sect = self.plugin_temp_dir / "sect"