Skip to content

Commit 63fdb87

Browse files
committed
+1
1 parent a1d7b39 commit 63fdb87

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

wechatrobot/Api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ def ForwardMessage(self , **params) -> Dict:
134134
return self.post(WECHAT_MSG_FORWARD_MESSAGE , ForwardMessageBody(**params))
135135

136136
def GetQrcodeImage(self , **params):
137-
r = requests.post( f"http://127.0.0.1:{self.port}/api/?type={WECHAT_GET_QRCODE_IMAGE}", data = GetQrcodeImageBody(**params).json())
137+
r = requests.post( f"http://{self.host}:{self.port}/api/?type={WECHAT_GET_QRCODE_IMAGE}", data = GetQrcodeImageBody(**params).json())
138138
return r.content
139139

140140
def GetA8Key(self , **params) -> Dict:
@@ -155,7 +155,7 @@ def SendEmotion(self , **params) -> Dict:
155155
def GetCdn(self , **params) -> Dict:
156156
return self.post(WECHAT_GET_CDN , GetCdnBody(**params))
157157

158-
#[自定义
158+
127 #[自定义
159159
def GetDBHandle(self, db_name="MicroMsg.db") -> int:
160160
if not self.db_handle:
161161
self.db_handle = {i["db_name"]: i["handle"] for i in self.GetDatabaseHandles()["data"]}

0 commit comments

Comments
 (0)