{"action":"opened","issue":{"url":"https://api.github.com/repos/youfou/wxpy/issues/310","repository_url":"https://api.github.com/repos/youfou/wxpy","labels_url":"https://api.github.com/repos/youfou/wxpy/issues/310/labels{/name}","comments_url":"https://api.github.com/repos/youfou/wxpy/issues/310/comments","events_url":"https://api.github.com/repos/youfou/wxpy/issues/310/events","html_url":"https://github.com/youfou/wxpy/issues/310","id":332968233,"node_id":"MDU6SXNzdWUzMzI5NjgyMzM=","number":310,"title":"控制台二维码输出和二维码图片输出两者不能同时进行","user":{"login":"18813038864","id":11926430,"node_id":"MDQ6VXNlcjExOTI2NDMw","avatar_url":"https://avatars1.githubusercontent.com/u/11926430?v=4","gravatar_id":"","url":"https://api.github.com/users/18813038864","html_url":"https://github.com/18813038864","followers_url":"https://api.github.com/users/18813038864/followers","following_url":"https://api.github.com/users/18813038864/following{/other_user}","gists_url":"https://api.github.com/users/18813038864/gists{/gist_id}","starred_url":"https://api.github.com/users/18813038864/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/18813038864/subscriptions","organizations_url":"https://api.github.com/users/18813038864/orgs","repos_url":"https://api.github.com/users/18813038864/repos","events_url":"https://api.github.com/users/18813038864/events{/privacy}","received_events_url":"https://api.github.com/users/18813038864/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-16T07:36:14Z","updated_at":"2018-06-16T07:36:14Z","closed_at":null,"author_association":"NONE","body":"site-packages/itchat/components/login.py中get_QR方法中的代码如下：\r\ndef get_QR(self, uuid=None, enableCmdQR=False, picDir=None, qrCallback=None):\r\n    uuid = uuid or self.uuid\r\n    picDir = picDir or config.DEFAULT_QR\r\n    qrStorage = io.BytesIO()\r\n    qrCode = QRCode('https://login.weixin.qq.com/l/' + uuid)\r\n    qrCode.png(qrStorage, scale=10)\r\n    if hasattr(qrCallback, '__call__'):\r\n        qrCallback(uuid=uuid, status='0', qrcode=qrStorage.getvalue())\r\n    else:\r\n        if enableCmdQR:\r\n            utils.print_cmd_qr(qrCode.text(1), enableCmdQR=enableCmdQR)\r\n        else:\r\n            with open(picDir, 'wb') as f:\r\n                f.write(qrStorage.getvalue())\r\n            utils.print_qr(picDir)\r\n    return qrStorage\r\n\r\n当enableCmdQR有值时就不能输出二维码图片啦，可根据需要自行修改"}}
{"actor":{"display_login":"18813038864"}}