A method for controlling charging of a terminal device, the method comprises: when charging a battery of the terminal device, determining whether a first charging chip currently performing charging of the battery needs to be switched to a second charging chip waiting for performing charging of the battery; and when it is determined that the first charging chip needs to be switched to the second charging chip, controlling the first charging chip to stop performing charging of the battery, and starting the second charging chip to perform charging of the battery, wherein the step of determining whether the first charging chip currently performing charging of the battery needs to be switched to the second charging chip waiting for performing charging of the battery comprises: determining a temperature of the first charging chip currently performing charging of the battery; and when the temperature of the first charging chip is higher than a preset temperature value, determining that the first charging chip currently performing charging of the battery needs to be switched to the second charging chip waiting for performing charging of the battery, wherein the method further comprises: determining a current temperature of at least one charging chip waiting for performing charging of the battery, and obtaining at least one corresponding current temperature; and determining the lowest temperature from the at least one current temperature, and when the lowest temperature is lower than the preset temperature value, using the charging chip corresponding to the lowest temperature as the second charging chip. when charging a battery of the terminal device, determining whether a first charging chip currently performing charging of the battery needs to be switched to a second charging chip waiting for performing charging of the battery; and when it is determined that the first charging chip needs to be switched to the second charging chip, controlling the first charging chip to stop performing charging of the battery, and starting the second charging chip to perform charging of the battery, wherein the step of determining whether the first charging chip currently performing charging of the battery needs to be switched to the second charging chip waiting for performing charging of the battery comprises: determining a temperature of the first charging chip currently performing charging of the battery; and when the temperature of the first charging chip is higher than a preset temperature value, determining that the first charging chip currently performing charging of the battery needs to be switched to the second charging chip waiting for performing charging of the battery, determining a temperature of the first charging chip currently performing charging of the battery; and when the temperature of the first charging chip is higher than a preset temperature value, determining that the first charging chip currently performing charging of the battery needs to be switched to the second charging chip waiting for performing charging of the battery, wherein the method further comprises: determining a current temperature of at least one charging chip waiting for performing charging of the battery, and obtaining at least one corresponding current temperature; and determining the lowest temperature from the at least one current temperature, and when the lowest temperature is lower than the preset temperature value, using the charging chip corresponding to the lowest temperature as the second charging chip. determining a current temperature of at least one charging chip waiting for performing charging of the battery, and obtaining at least one corresponding current temperature; and determining the lowest temperature from the at least one current temperature, and when the lowest temperature is lower than the preset temperature value, using the charging chip corresponding to the lowest temperature as the second charging chip.