Skip to content

Commit b6cd2d7

Browse files
committed
refactor: remove useless code
1 parent d8d2139 commit b6cd2d7

1 file changed

Lines changed: 0 additions & 29 deletions

File tree

src/wechat_decrypt_tool/key_service.py

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -221,35 +221,6 @@ def get_wechat_internal_global_config(wx_dir: Path, file_name1) -> bytes:
221221
return Path(target_path).read_bytes()
222222

223223

224-
# def get_local_config_sha3_224() -> bytes:
225-
# """
226-
# 不要在意,抽象的实现 哈哈哈
227-
# """
228-
# content = json.dumps({
229-
# "wxfile_dir": "C:\\Users\\17078\\xwechat_files",
230-
# "weixin_id_folder": "wxid_lnyf4hdo9csb12_f1c4",
231-
# "cache_dir": "C:\\Users\\17078\\Desktop\\wxDBHook\\test\\wx-dat\\wx-dat\\.cache",
232-
# "db_key": "",
233-
# "port": 8001
234-
# }, indent=4).encode("utf-8")
235-
#
236-
# # 计算 SHA3-224
237-
# digest = hashlib.sha3_224(content).digest()
238-
# return digest
239-
240-
# async def log_request(request):
241-
# print(f"--- Request Raw ---")
242-
# print(f"{request.method} {request.url} {request.extensions.get('http_version', b'HTTP/1.1').decode()}")
243-
# for name, value in request.headers.items():
244-
# print(f"{name}: {value}")
245-
#
246-
# print()
247-
#
248-
# body = request.read()
249-
# if body:
250-
# print(body.decode(errors='replace'))
251-
# print(f"-------------------\n")
252-
253224

254225
async def fetch_and_save_remote_keys(account: Optional[str] = None) -> Dict[str, Any]:
255226
account_dir = _resolve_account_dir(account)

0 commit comments

Comments
 (0)