You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
682 B

6 days ago
# -*- coding: utf-8 -*-
"""票 12 bruno-sync 侦察:全仓搜 customer/team 端点落点 + 商机详情 folder.bru 内容。"""
import io
import sys
from pathlib import Path
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8')
root = Path('D:/code/crm-api-docs')
for p in sorted(root.rglob('*.bru')):
try:
t = p.read_text(encoding='utf-8', errors='replace')
except OSError:
continue
if '/api/opportunity/customer/' in t or '/api/opportunity/team/' in t:
print('HIT', p.relative_to(root))
fd = root / '商机模块' / '商机详情' / 'folder.bru'
print()
print('商机详情/folder.bru:')
print(fd.read_text(encoding='utf-8'))