Update app.py
Browse files
app.py
CHANGED
@@ -6,6 +6,7 @@ import random
|
|
6 |
import os
|
7 |
from curl_cffi import requests
|
8 |
import re
|
|
|
9 |
|
10 |
|
11 |
# 创建新的聊天频道
|
@@ -122,6 +123,8 @@ def request_to_v2(message, cookie, user_id,context=[]):
|
|
122 |
}
|
123 |
|
124 |
try:
|
|
|
|
|
125 |
print(f"输入的问题:{message}")
|
126 |
response = requests.post(post_msg_url, headers=headers, data=post_msg_data, verify=False,timeout = timeout,impersonate="chrome110")
|
127 |
decoded_data = response.content.decode("utf-8")
|
|
|
6 |
import os
|
7 |
from curl_cffi import requests
|
8 |
import re
|
9 |
+
import datetime
|
10 |
|
11 |
|
12 |
# 创建新的聊天频道
|
|
|
123 |
}
|
124 |
|
125 |
try:
|
126 |
+
day = datetime.datetime.today().strftime('%Y%m%d_%H-%M-%S')
|
127 |
+
print(f"请求时间:{day}")
|
128 |
print(f"输入的问题:{message}")
|
129 |
response = requests.post(post_msg_url, headers=headers, data=post_msg_data, verify=False,timeout = timeout,impersonate="chrome110")
|
130 |
decoded_data = response.content.decode("utf-8")
|