Thermal rectification is a mechanism that controls the direction of heat conduction, allowing it to flow freely in one direction and hindering it in the opposite direction. In this study, we propose a heat conduction model on a complex network where the node masses are non-uniformly distributed according to mi∼kiα. Our findings show that the existence of a critical point, α=1, determines the working mode of thermal rectification. For α>1, the working mode of thermal rectification is positive, whereas for α<1, the working mode is negative. Additionally, we discovered that this critical transition is a general phenomenon and does not vary with changes in network size, average degree, or degree distribution. By conducting theoretical analyses based on phonon spectra, we also identified the physical mechanism of the critical transition. These results provide a new approach to implement and enrich thermal diodes, opening up new possibilities for more efficient thermal management.