fix: BTC shows alt_score_ref as display score, not gated-zero score

This commit is contained in:
root 2026-03-03 15:39:15 +00:00
parent dfcf4f43c4
commit 67f68f8756

View File

@ -193,9 +193,6 @@ function BTCGateCard({ factors }: { factors: LatestIndicator["factors"] }) {
: <span className="font-mono">{factors.block_reason}</span> : <span className="font-mono">{factors.block_reason}</span>
</p> </p>
)} )}
{factors.alt_score_ref !== undefined && (
<p className="text-[10px] text-slate-400 mt-1">ALT逻辑: {factors.alt_score_ref} </p>
)}
</div> </div>
); );
} }
@ -307,8 +304,22 @@ function IndicatorCards({ symbol }: { symbol: Symbol }) {
</p> </p>
</div> </div>
<div className="text-right"> <div className="text-right">
<p className="font-mono font-bold text-lg text-slate-800">{data.score}/100</p> {isBTC ? (
<p className="text-[10px] text-slate-500">{data.tier === "heavy" ? "加仓" : data.tier === "standard" ? "标准" : "不开仓"}</p> <>
<p className="font-mono font-bold text-lg text-slate-800">
{data.factors?.alt_score_ref ?? data.score}/100
<span className="text-[10px] font-normal text-slate-400 ml-1"></span>
</p>
<p className="text-[10px] text-slate-500">
{(data.factors?.gate_passed) ? (data.tier === "standard" ? "标准" : "不开仓") : "Gate否决"}
</p>
</>
) : (
<>
<p className="font-mono font-bold text-lg text-slate-800">{data.score}/100</p>
<p className="text-[10px] text-slate-500">{data.tier === "heavy" ? "加仓" : data.tier === "standard" ? "标准" : "不开仓"}</p>
</>
)}
</div> </div>
</div> </div>