chore(dev): 同步本地忽略规则与调试脚本端口读取

This commit is contained in:
2977094657
2026-02-28 18:40:41 +08:00
Unverified
parent c7640f49e1
commit d2c8857863
3 changed files with 10 additions and 2 deletions
+5
View File
@@ -21,6 +21,8 @@ wheels/
pnpm-lock.yaml
/tools/tmp_isaac64_compare.js
/.claude/settings.local.json
.env
.env.*
# Local dev repos and data
/WxDatDecrypt/
@@ -44,3 +46,6 @@ pnpm-lock.yaml
/desktop/resources/backend/*.exe
!/desktop/resources/backend/.gitkeep
/desktop/resources/icon.ico
# Local scratch file accidentally generated during development
/bento-summary.html
+3 -1
View File
@@ -1,9 +1,11 @@
#!/usr/bin/env python3
"""调试消息类型返回值"""
import os
import requests
resp = requests.get('http://localhost:8000/api/chat/messages', params={
PORT = os.environ.get("WECHAT_TOOL_PORT", "10392")
resp = requests.get(f'http://localhost:{PORT}/api/chat/messages', params={
'account': 'wxid_v4mbduwqtzpt22',
'username': 'wxid_qmzc7q0xfm0j22',
'limit': 100
+2 -1
View File
@@ -1,9 +1,10 @@
#!/usr/bin/env python3
"""测试图片 API"""
import os
import requests
r = requests.get(
'http://localhost:8000/api/chat/media/image',
f'http://localhost:{os.environ.get("WECHAT_TOOL_PORT", "10392")}/api/chat/media/image',
params={
'account': 'wxid_v4mbduwqtzpt22',
'md5': '8753fcd3b1f8c4470b53551e13c5fbc1',