|
@@ -648,6 +648,12 @@ class BaseRoBot(object):
|
|
|
self.make_error_page = f
|
|
|
return f
|
|
|
|
|
|
+
|
|
|
+class WeRoBot(BaseRoBot):
|
|
|
+ """
|
|
|
+ WeRoBot 是一个继承自 BaseRoBot 的对象,在 BaseRoBot 的基础上使用了 bottle 框架,
|
|
|
+ 提供接收微信服务器发来的请求的功能。
|
|
|
+ """
|
|
|
def init_app(self, app):
|
|
|
"""
|
|
|
使werobot 配合app使用
|
|
@@ -665,12 +671,6 @@ class BaseRoBot(object):
|
|
|
ENCODING_AES_KEY=encoding_aes_key)
|
|
|
|
|
|
|
|
|
-
|
|
|
-class WeRoBot(BaseRoBot):
|
|
|
- """
|
|
|
- WeRoBot 是一个继承自 BaseRoBot 的对象,在 BaseRoBot 的基础上使用了 bottle 框架,
|
|
|
- 提供接收微信服务器发来的请求的功能。
|
|
|
- """
|
|
|
@cached_property
|
|
|
def wsgi(self):
|
|
|
if not self._handlers:
|