feat: 服务页双栏布局 + 滑块验证码 v2(图片化挑战/行为校验/限流/蜜罐)
服务页(/services): - lg+ 双栏:左列服务菜单(NO.01-07,点击选中)、右列表单 (sticky 跟随);移动端保持上下堆叠 滑块验证码 v2(防机械脚本): - 答案坐标不再下发:缺口位置由服务端烘进 PNG(lib/captchaImage 自绘点阵底图 + 拼块裁片,lib/pngEncoder 纯 TS PNG 编码器, node:zlib 零依赖),脚本必须做图像识别才能定位 - 行为轨迹校验:拖动采样提交服务端,样本数 ≥6、总时长 ≥1.2s、 单调时间戳、峰值速度 > 平均×1.8(匀速直线 = 拒)、末点 ≈ 答案 - 位置容差 ±10px;失败 5 次作废;挑战 10 分钟过期 - IP 指纹(哈希)限流:challenge 15/10min、verify 30/10min、 咨询提交 3/小时;蜜罐字段(website)命中静默丢弃 端到端:无轨迹/匀速直线/超短时长均拒;真人节奏通过;重放拦截; 蜜罐丢弃;第 14 次刷 challenge 起 429;SMTP 真发正常。
This commit is contained in:
@@ -416,31 +416,39 @@ export function LoadingCurtain({
|
||||
onComplete?: (open: boolean) => void;
|
||||
}) {
|
||||
const materialRef = useRef<any>(null);
|
||||
// R3F's Canvas container carries inline `position: relative; width/height:
|
||||
// 100%` which OVERRIDES any Tailwind `fixed inset-0` on the Canvas itself —
|
||||
// the curtain then renders as an in-flow ~150px strip (invisible during
|
||||
// transitions and, worse, pointer-events:auto so it eats card clicks). A
|
||||
// dedicated fullscreen fixed wrapper gives the container a real viewport
|
||||
// box; pointer-events:none inherits to the whole subtree.
|
||||
return (
|
||||
<Canvas
|
||||
dpr={[1, 2]}
|
||||
frameloop="demand"
|
||||
gl={{
|
||||
alpha: true,
|
||||
antialias: false,
|
||||
premultipliedAlpha: true,
|
||||
depth: false,
|
||||
stencil: false,
|
||||
powerPreference: "high-performance",
|
||||
preserveDrawingBuffer: false,
|
||||
}}
|
||||
className="fixed inset-0 z-[60] pointer-events-none"
|
||||
>
|
||||
<RadialHoleMask
|
||||
open={open}
|
||||
duration={duration}
|
||||
initialProgress={initialProgress}
|
||||
resetKey={resetKey}
|
||||
onComplete={onComplete}
|
||||
materialRef={materialRef}
|
||||
/>
|
||||
<DotsPost materialRef={materialRef} />
|
||||
</Canvas>
|
||||
<div className="fixed inset-0 z-[60] pointer-events-none">
|
||||
<Canvas
|
||||
dpr={[1, 2]}
|
||||
frameloop="demand"
|
||||
style={{ pointerEvents: "none" }}
|
||||
gl={{
|
||||
alpha: true,
|
||||
antialias: false,
|
||||
premultipliedAlpha: true,
|
||||
depth: false,
|
||||
stencil: false,
|
||||
powerPreference: "high-performance",
|
||||
preserveDrawingBuffer: false,
|
||||
}}
|
||||
>
|
||||
<RadialHoleMask
|
||||
open={open}
|
||||
duration={duration}
|
||||
initialProgress={initialProgress}
|
||||
resetKey={resetKey}
|
||||
onComplete={onComplete}
|
||||
materialRef={materialRef}
|
||||
/>
|
||||
<DotsPost materialRef={materialRef} />
|
||||
</Canvas>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user