This commit is contained in:
yumoqing 2026-03-03 11:08:28 +08:00
parent 40f17cebd5
commit 8b90bc9cbe

View File

@ -98,7 +98,7 @@ class WOAHandler:
# 2. 获取 AppID (这里假设你有,或者从配置读,加密必须用到 AppID 填充在末尾) # 2. 获取 AppID (这里假设你有,或者从配置读,加密必须用到 AppID 填充在末尾)
# 注意:原生实现需要知道 AppID 才能正确加密,否则微信无法解密 # 注意:原生实现需要知道 AppID 才能正确加密,否则微信无法解密
# 为了演示,这里假设有一个 app_id 属性,请自行补充 # 为了演示,这里假设有一个 app_id 属性,请自行补充
app_id = "YOUR_APP_ID" app_id = self.app_id
# 3. 拼接Random(16) + Len(4) + Content + AppID # 3. 拼接Random(16) + Len(4) + Content + AppID
content_bytes = text.encode('utf-8') content_bytes = text.encode('utf-8')