In this paper, a self-developed multi-functional high-temperature rock triaxial servo control testing machine was used to carry out uniaxial compression tests on the granite after the cooling and heating cycles under real-time temperature. The physical and mechanical properties of two types of granite damaged by hot and cold cycling under real-time temperature were discussed, and the changes in apparent color, longitudinal wave velocity, elastic modulus, uniaxial compressive strength, and damage characteristics of the specimen were revealed. The research results show the following: (1) With the increase in temperature or the increase in number of cycles, the uniaxial compressive strength, longitudinal wave velocity, and elastic modulus of the samples under the two cooling methods all show a decreasing trend, but the decrease in the range is different. The change range of the sample with temperature is greater than that with the number of cycles. (2) Under the dual action of real-time temperature and cold heat cycle damage, the failure form of granite is very random, but it is mainly shear failure, longitudinal splitting failure, and conical failure, and it is accompanied by a high temperature with the increase in the number of cycles, and the degree of crushing of the test piece gradually increases. For example, the sample under 600 °C water cooling for 25 cycles is crushed and destroyed. (3) As the temperature and the number of cycles increase, the surface of the water-cooled sample becomes rougher with the increase in the temperature and the number of cycles and the higher temperature, along with more cracks and debris; the increase in the temperature cycle, no obvious cracks appeared on the surface. The test results in this paper can provide relevant theoretical guidance for the stability and safety of rock in geothermal mining.