SANTA CLARA, Calif. (AP) — Brock Purdy threw a touchdown pass and ran for another score to send the San Francisco 49ers into their bye week on a high note with a 30-24 victory over the Dallas Cowboys on Sunday night.