Support CoolQHttpApi message source

This commit is contained in:
Richard Chien
2017-02-15 23:39:37 +08:00
parent 74b3bad931
commit 318d642c90
8 changed files with 122 additions and 17 deletions

View File

@ -52,7 +52,7 @@ class MojoWeixinAdapter(Adapter):
return new_ctx
def get_login_info(self, ctx_msg: dict):
def get_login_info(self):
json = requests.get(self.api_url + '/get_user_info').json()
if json:
json['user_tid'] = json.get('id')