From 8b90bc9cbe60c79cdd9c4b680a8738e0c947f6c6 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 3 Mar 2026 11:08:28 +0800 Subject: [PATCH] bugfix --- woa/init.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/woa/init.py b/woa/init.py index 6b03dfd..33df7db 100644 --- a/woa/init.py +++ b/woa/init.py @@ -98,7 +98,7 @@ class WOAHandler: # 2. 获取 AppID (这里假设你有,或者从配置读,加密必须用到 AppID 填充在末尾) # 注意:原生实现需要知道 AppID 才能正确加密,否则微信无法解密 # 为了演示,这里假设有一个 app_id 属性,请自行补充 - app_id = "YOUR_APP_ID" + app_id = self.app_id # 3. 拼接:Random(16) + Len(4) + Content + AppID content_bytes = text.encode('utf-8')