feat:增加查询股票信息

This commit is contained in:
2025-10-14 16:50:33 +08:00
parent 9f1b356ee3
commit 449fe40a93
4 changed files with 58 additions and 17 deletions

18
wechat_message.py Normal file
View File

@@ -0,0 +1,18 @@
import requests
import json
webhook_url = 'https://qyapi.weixin.qq.com/cgi-bin/webhook/send'
webhook_key = 'f09eb098-f709-4fc6-83b5-4a08a8431b8f'
def send_wechat_message(message: str):
response = requests.post(
webhook_url,
headers={
"Content-Type": "application/json"
},
params={'key': webhook_key},
data=json.dumps(message, ensure_ascii=False).encode('utf-8')
)
return response.json()