-
Notifications
You must be signed in to change notification settings - Fork 998
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
服务器上已使用改框架,同时希望在框架下实现一个页面用来绑定微信号与用户 #3
Comments
你是想微信机器人和网页共用一个域名? 如果是的话: 如果不是的话: |
我在sina app 上使用, 假设地址是 :robot.sinaapp.com , 我希望使用werobot中的bottle解析 robot.sinaapp.com/hello ,应该怎么写呢 |
@liuchang0812 可以尝试用 Tornado 把两个 WSGI 应用 「粘」到一起: import tornado.web
import tornado.wsgi
from robot import robot
from your_app import app
robot = tornado.wsgi.WSGIContainer(robot)
app = tornado.wsgi.WSGIContainer(app)
application = tornado.web.WSGIApplication([
('/robot', tornado.web.FallbackHandler, dict(fallback=robot)),
('.*', tornado.web.FallbackHandler, dict(fallback=robot)),
]) |
我试着采用@whtsky提到的方法来合并,提示TypeError: 'WeRoBot' object is not callable |
= = |
好像是应该 |
@dalang 客气了≥﹏≤ |
@dalang 0.3.4 版本里改成 robot.wsgi 了 |
好的,谢谢你的提醒。我也会及时升级我的微信机器人。:-P
|
应该怎么办
在 robot.py 里面添加相应路由吗?
The text was updated successfully, but these errors were encountered: