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')