From c304f55a497e95cc200ab09f0483b13cd9da8703 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 3 Mar 2026 12:06:02 +0800 Subject: [PATCH] bugfix --- woa/init.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/woa/init.py b/woa/init.py index f549373..5eebb2a 100644 --- a/woa/init.py +++ b/woa/init.py @@ -244,6 +244,12 @@ class WOAHandler: timestamp = str(int(time.time())) nonce = ''.join([str(random.randint(0, 9)) for _ in range(10)]) encrypted_xml_str = self._encrypt_msg(reply_xml, nonce, timestamp) + try: + decode_data = self._encrypt_msg(encrypted_xml_str, nonce, timestamp) + debug(f'{decode_data=},{reply_xml=}') + except Exception as e: + exception(f'{e}') + # 构造加密后的返回 XML 包 final_xml = f""" {timestamp}"""