cloverstd / flask-wechatpy Goto Github PK
View Code? Open in Web Editor NEWwechatpy support for flask
License: MIT License
wechatpy support for flask
License: MIT License
139行:current_app['WECHAT_AES_KEY'],应该是current_app.config['WECHAT_AES_KEY']
解密消息也有错:raw_msg = crypto.decrypt_message(
raw_msg,
signature,
timestamp,
nonce
)
不应该是signature,应该是msg_signature = request.args.get('msg_signature', '')
raw_msg = crypto.decrypt_message(
raw_msg,
msg_signature,
timestamp,
nonce
)
WECHAT_SESSTION_REDIS_URL
但是代码里是WECHAT_SESSION_REDIS_URL
你多加了一个T进去呀!
还以为是自己的容器网络有问题....
我遇到的情况:
开发订阅号后台时,因订阅号不支持网页授权功能,只好绕道用服务号实现网页登录授权。
flask-wechatpy 中使用 app.config 全局配置了 oauth 和 WechatPay 所需的服务号 appid。
要接收订阅号的文字、菜单等消息,就要单写一个服务,没法用 wechat 和 wechat_requeired。
我也在用flask,刚刚在使用wechatpy,不过没有像博主一样做成插件。
发现你这样挺好用的,也看了你的博客,也用docker部署。
希望多交流,碰到问题再向你请教,谢谢
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.