itchatmp icon indicating copy to clipboard operation
itchatmp copied to clipboard

A complete and graceful API for wechat mp. 完备优雅的微信公众号接口,原生支持同步、协程使用。

Results 36 itchatmp issues
Sort by recently updated
recently updated
newest added

arm上跑,遇到这个问题, raise environmenterror:port 80 is in use 但是实际上 netstat-ano 并没有任务占用此端口

都可以在这里交流,我会及时回复的~ 也欢迎加入QQ群讨论:438747166

1.如何定义访问的url? 譬如 http://host.ip/app_id 2.对于多个微信企业号app的回调函数如何共存? 譬如微信企业号有3个app需要回调程序自动回复,如何共存?总不会每一个单独一个程序,这样还要监听不同的端口

使用被动回复接口时,抛出异常,比较奇怪的是有时出错,有时正常,是不是网络问题的锅? 代码如下: `@itchatmp.msg_register(itchatmp.content.LINK)` `def linx_reply(msg):` ` if u'红包' in msg['Title']:` ` red_dict[msg['FromUserName']] = msg['Url']` ` #下面方法为向某网站api接口请求数据` ` conunt_left = connect_mtdhb.update_counts()` ` return u'系统可用红包点数为 ' + str(conunt_left) + ',请输入红包密令'` 异常日志如下: `Traceback...

- - [2019/08/11 11:53:08] aihelper 570 1 - Traceback (most recent call last):\n File \"/data1/www/htdocs/570/aihelper/1/vendor/itchatmp/components/register.py\", line 56, in sync_post_fn\n reply = reply_fn(copy.deepcopy(msgDict))\n File \"/data1/www/htdocs/570/aihelper/1/main.py\", line 28, in reply\n itchatmp.send('Hello', msg['FromUserName'])\n...

请问怎么获得菜单点击的动作?另外好像发送消息的时候也总报错

python3.7 使用pipenv 安装报错 `pipenv install itchatmp` `Installing itchatmp… Adding itchatmp to Pipfile's [packages]… ✔ Installation Succeeded Pipfile.lock (c896b0) out of date, updating to (889585)… Locking [dev-packages] dependencies… Locking [packages] dependencies…...

`/usr/lib/python3/dist-packages/urllib3/connectionpool.py:845: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings InsecureRequestWarning) Uncaught exception POST /?signature=66bd3f677364c353d9b986e4b0005f3e86d2c97f&timestamp=1539071870&nonce=797132558&openid=obYqI1KyGRMh52u_eS1_33pEPYtk (127.0.0.1) HTTPServerRequest(protocol='http', host='raspberrypitest.natapp1.cc', method='POST', uri='/?signature=66bd3f677364c353d9b986e4b0005f3e86d2c97f&timestamp=1539071870&nonce=797132558&openid=obYqI1KyGRMh52u_eS1_33pEPYtk', version='HTTP/1.1', remote_ip='127.0.0.1') Traceback (most...

我修改了 \itchatmp\components\register.py 文件中的run函数,添加了一个自定义的url参数,修改代码如下: def run(self, isWsgi=False, debug=True, port=80, url='/'): self.isWsgi = isWsgi self.debug = debug if debug: set_logging(loggingLevel=logging.DEBUG) MainHandler = construct_handler(self, isWsgi) app = tornado.web.Application( [(url, MainHandler)], debug=debug) 添加这个url参数,主要是在实际应用中,我使用nginx做代理,微信公众号服务器地址有二级路径,例如:http://vfczq9.natappfree.cc/yl 希望这个功能可以添加到主版本中,目前我是fork了一个版本:https://github.com/dlyili/itchatmp...