修改通知时间为晚上10点,添加cookie保存功能,按用户和域名区分保存
This commit is contained in:
@@ -0,0 +1,42 @@
|
||||
"""测试爱语飞飞通知"""
|
||||
import requests
|
||||
|
||||
iyuu_token = "IYUU37629Tc1d371c7ce99a49ff9778e196286b7e4592be191"
|
||||
api_url = f"https://iyuu.cn/{iyuu_token}.send"
|
||||
|
||||
title = "【测试】Cookie监控通知测试"
|
||||
content = """这是一条测试消息。
|
||||
|
||||
测试时间: 2026-03-04
|
||||
测试内容: 验证爱语飞飞通知是否正常工作
|
||||
|
||||
如果您收到此消息,说明通知功能正常。"""
|
||||
|
||||
print(f"API URL: {api_url}")
|
||||
print(f"Title: {title}")
|
||||
print(f"Content: {content}")
|
||||
print("\n正在发送请求...")
|
||||
|
||||
try:
|
||||
response = requests.get(
|
||||
api_url,
|
||||
params={
|
||||
'text': title,
|
||||
'desp': content
|
||||
},
|
||||
timeout=10
|
||||
)
|
||||
|
||||
print(f"状态码: {response.status_code}")
|
||||
print(f"响应内容: {response.text}")
|
||||
|
||||
result = response.json()
|
||||
print(f"\n解析结果: {result}")
|
||||
|
||||
if result.get('errcode') == 0:
|
||||
print("\n✓ 发送成功!")
|
||||
else:
|
||||
print(f"\n✗ 发送失败: {result.get('errmsg')}")
|
||||
|
||||
except Exception as e:
|
||||
print(f"\n✗ 请求异常: {e}")
|
||||
Reference in New Issue
Block a user