Skip to content

Commit d2c8857

Browse files
committed
chore(dev): 同步本地忽略规则与调试脚本端口读取
1 parent c7640f4 commit d2c8857

3 files changed

Lines changed: 10 additions & 2 deletions

File tree

.gitignore

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ wheels/
2121
pnpm-lock.yaml
2222
/tools/tmp_isaac64_compare.js
2323
/.claude/settings.local.json
24+
.env
25+
.env.*
2426

2527
# Local dev repos and data
2628
/WxDatDecrypt/
@@ -44,3 +46,6 @@ pnpm-lock.yaml
4446
/desktop/resources/backend/*.exe
4547
!/desktop/resources/backend/.gitkeep
4648
/desktop/resources/icon.ico
49+
50+
# Local scratch file accidentally generated during development
51+
/bento-summary.html

tools/debug_message_types.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
#!/usr/bin/env python3
22
"""调试消息类型返回值"""
33

4+
import os
45
import requests
56

6-
resp = requests.get('http://localhost:8000/api/chat/messages', params={
7+
PORT = os.environ.get("WECHAT_TOOL_PORT", "10392")
8+
resp = requests.get(f'http://localhost:{PORT}/api/chat/messages', params={
79
'account': 'wxid_v4mbduwqtzpt22',
810
'username': 'wxid_qmzc7q0xfm0j22',
911
'limit': 100

tools/test_image_api.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
#!/usr/bin/env python3
22
"""测试图片 API"""
3+
import os
34
import requests
45

56
r = requests.get(
6-
'http://localhost:8000/api/chat/media/image',
7+
f'http://localhost:{os.environ.get("WECHAT_TOOL_PORT", "10392")}/api/chat/media/image',
78
params={
89
'account': 'wxid_v4mbduwqtzpt22',
910
'md5': '8753fcd3b1f8c4470b53551e13c5fbc1',

0 commit comments

Comments
 (0)