Invariance of Quantum Rings under Ordinary Flops II: A quantum Leray--Hirsch theorem