Comments (8)
handle_reveive_msg处理接收到的sharing类型消息,将其中的内容(题目和回答)放入message,其他的代码你可以看看wxpy文档就清楚了
from fefs.
哦,这样啊,我发现控制台里打印不出二维码,现在正尝试去掉console=1
from fefs.
貌似还是一样调不出二维码...
from fefs.
需要在config.ini中配置微信公众号名称才会调用那段代码
from fefs.
嗯,加到config.ini里了,单引号括起来的
有什么方法能改成TEXT类型的消息处理吗
或者能不能把TEXT转成sharing的再直接调代码...
from fefs.
我不太熟悉python...刚刚看了下wxpy的文档,试着学了几行代码...看不太懂那个sharing类型消息的结构...
from fefs.
sharing类型消息是一段格式固定xml,如果改成text类型,文本内容太过丰富处理起来比较麻烦
from fefs.
哦,原来如此,我发现公众号里的回复格式是固定的,应该能转成xml
这样就可以直接套用了,知识我不知道这个xml的格式
我看了下源码,这个xml是不是包含titile和answer两部分?
from fefs.
Related Issues (2)
- 不能自动登录,一直验证码错误 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from fefs.