Update app.py
Browse files
app.py
CHANGED
@@ -221,9 +221,12 @@ def request_to_v2(message, cookie, user_id,attachment=None,delst=True,context=[]
|
|
221 |
try:
|
222 |
print(f"输入的问题:{message}")
|
223 |
if proxies:
|
224 |
-
response = requests.post(post_msg_url, headers=headers, data=post_msg_data, verify=False, stream=False,timeout = timeout)
|
225 |
-
|
226 |
response = requests.post(post_msg_url, headers=headers, data=post_msg_data, verify=False, stream=False,timeout = timeout, proxies=proxies)
|
|
|
|
|
|
|
227 |
|
228 |
bots = ""
|
229 |
print("a"*100)
|
|
|
221 |
try:
|
222 |
print(f"输入的问题:{message}")
|
223 |
if proxies:
|
224 |
+
# response = requests.post(post_msg_url, headers=headers, data=post_msg_data, verify=False, stream=False,timeout = timeout)
|
225 |
+
print("使用代理.")
|
226 |
response = requests.post(post_msg_url, headers=headers, data=post_msg_data, verify=False, stream=False,timeout = timeout, proxies=proxies)
|
227 |
+
else:
|
228 |
+
print("******不使用代理.")
|
229 |
+
response = requests.post(post_msg_url, headers=headers, data=post_msg_data, verify=False, stream=False,timeout = timeout)
|
230 |
|
231 |
bots = ""
|
232 |
print("a"*100)
|