Skip to content

Commit 3df22af

Browse files
committed
Merge branch 'port'
2 parents 1bae063 + ef2ed54 commit 3df22af

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wechatrobot/WeChatRobot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@
1515
class WeChatRobot:
1616
BASE_PATH = "C:\\Users\\user\\My Documents\\WeChat Files"
1717

18-
def __init__(self , ip : str = "0.0.0.0" , port : int = 23456):
18+
def __init__(self , ip : str = "0.0.0.0" , port : int = 23456, comwechat_port : int = 18888):
1919
self.ip = ip
2020
self.port = port
21-
self.api = Api()
21+
self.api = Api(comwechat_port)
2222

2323
self.url = "http://{}:{}/".format(ip , port)
2424

0 commit comments

Comments
 (0)