xiaolv commited on
Commit
7260287
1 Parent(s): 2534873

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
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
- else:
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)