wechat_apis.py 文件源码

python
阅读 18 收藏 0 点赞 0 评论 0

项目:WeixinBot 作者: Urinx 项目源码 文件源码
def genqrcode(self):
        """
        @brief      outprint the qrcode to stdout on macos/linux
                    or open image on windows
        """
        if sys.platform.startswith('win'):
            url = self.wx_conf['API_qrcode_img'] + self.uuid
            params = {
                't': 'webwx',
                '_': int(time.time())
            }
            data = post(url, params, False)
            if data == '':
                return
            qrcode_path = save_file('qrcode.jpg', data, './')
            os.startfile(qrcode_path)
        else:
            str2qr_terminal(self.wx_conf['API_qrcode'] + self.uuid)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号