Temperature-dependent gap equations and their solutions in the SU(4) model of high-temperature superconductivity