From 5d19cb05af169abd8d8d6806206f0499f342f453 Mon Sep 17 00:00:00 2001 From: qsc20001102 Date: Sat, 27 Dec 2025 11:53:26 +0800 Subject: [PATCH] 11 --- core/jx3_service.py | 2 +- main.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/core/jx3_service.py b/core/jx3_service.py index 65f74a5..86625b8 100644 --- a/core/jx3_service.py +++ b/core/jx3_service.py @@ -148,7 +148,7 @@ class JX3Service: return return_data - async def richangyuche(self,server: str) -> Dict[str, Any]: + async def richangyuche(self) -> Dict[str, Any]: """日常预测""" return_data = self._init_return_data() diff --git a/main.py b/main.py index 91eb19a..288783c 100644 --- a/main.py +++ b/main.py @@ -149,11 +149,11 @@ class Jx3ApiPlugin(Star): logger.error(f"功能函数执行错误: {e}") yield event.plain_result("猪脑过载,请稍后再试") - @jx3.command("月历") - async def jx3_richangyuche(self, event: AstrMessageEvent,server: str = "" ,num: int = 0): - """剑三 月历 服务器 """ + @jx3.command("日常预测") + async def jx3_richangyuche(self, event: AstrMessageEvent): + """剑三 日常预测 服务器 """ try: - data= await self.jx3fun.richangyuche(await self.serverdefault(server)) + data= await self.jx3fun.richangyuche() if data["code"] == 200: yield event.plain_result(data["data"]) else: