mirror of
https://github.com/0O0o0oOoO00/Alas.git
synced 2026-05-14 13:49:26 +08:00
Fix: fix maa closedown (#4165)
This commit is contained in:
@@ -106,7 +106,7 @@ class AssistantHandler:
|
|||||||
所有其他回调处理函数应遵循同样格式,
|
所有其他回调处理函数应遵循同样格式,
|
||||||
在需要使用的时候加入callback_list,
|
在需要使用的时候加入callback_list,
|
||||||
可以被随时移除,或在任务结束时自动清空。
|
可以被随时移除,或在任务结束时自动清空。
|
||||||
参数的详细说明见https://github.com/MaaAssistantArknights/MaaAssistantArknights/blob/master/docs/3.2-回调信息协议.md
|
参数的详细说明见https://github.com/MaaAssistantArknights/MaaAssistantArknights/blob/master/docs/zh-cn/protocol/callback-schema.md
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
m (Message): 消息类型
|
m (Message): 消息类型
|
||||||
@@ -207,7 +207,9 @@ class AssistantHandler:
|
|||||||
def startup(self):
|
def startup(self):
|
||||||
self.connect()
|
self.connect()
|
||||||
if self.config.Scheduler_NextRun.strftime('%H:%M') == self.config.Scheduler_ServerUpdate:
|
if self.config.Scheduler_NextRun.strftime('%H:%M') == self.config.Scheduler_ServerUpdate:
|
||||||
self.maa_start('CloseDown', {})
|
self.maa_start('CloseDown', {
|
||||||
|
"client_type": self.config.MaaEmulator_PackageName
|
||||||
|
})
|
||||||
|
|
||||||
self.maa_start('StartUp', {
|
self.maa_start('StartUp', {
|
||||||
"client_type": self.config.MaaEmulator_PackageName,
|
"client_type": self.config.MaaEmulator_PackageName,
|
||||||
|
|||||||
Reference in New Issue
Block a user