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}"""