全项目扫描修复: Docker数据卷修复+安全requireAdmin+12页SEO+API白名单+脚本超时+常量提取+假数据删除

This commit is contained in:
ZhuiGuangAI Dev
2026-06-12 17:27:47 +08:00
parent 464924aea0
commit 4c325c8699
454 changed files with 33647 additions and 980 deletions
+24
View File
@@ -0,0 +1,24 @@
import re
import urllib.request
req = urllib.request.Request('https://www.zhuig.com/community', headers={'User-Agent': 'Mozilla/5.0', 'Cache-Control': 'no-cache'})
html = urllib.request.urlopen(req, timeout=15).read().decode('utf-8')
# 找self.__next_f.push的script块
push_pattern = re.compile(r'self\.__next_f\.push\(\[1,"(.*?)"\]\)', re.DOTALL)
chunks = push_pattern.findall(html)
print(f'RSC push 块数: {len(chunks)}')
# 解码第一块
for i, chunk in enumerate(chunks):
# 反转义
decoded = chunk.encode().decode('unicode_escape')
# 找"电商零售"在不在
if '电商零售' in decoded or '平台电商' in decoded:
print(f'\n=== Chunk {i} (长{len(decoded)}) 包含板块数据 ===')
# 找电商零售位置
idx = decoded.find('电商零售')
print(f'电商零售位置: {idx}')
print(f'周围200字符: {decoded[max(0,idx-50):idx+400]}')
if i < 3:
break