Skip to content

Commit 46d7643

Browse files
committed
fixed syntax errors
1 parent a556dfb commit 46d7643

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

wxbot.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env python
22
# coding: utf-8
3-
import qrcode
3+
from collections import defaultdict
4+
import pyqrcode
45
import requests
56
import json
67
import xml.dom.minidom
@@ -74,7 +75,7 @@ def get_uuid(self):
7475

7576
def gen_qr_code(self):
7677
string = 'https://login.weixin.qq.com/l/' + self.uuid
77-
qr = qrcode.QRCode()
78+
qr = pyqrcode.QRCode()
7879
qr.border = 1
7980
qr.add_data(string)
8081
qr.make(fit=True)

0 commit comments

Comments
 (0)