In order to alleviate the lack of trust in P2P environment, a malicious node attacks and so on, through the expansion of Josang subjective logic thought, proposed a extended subjective logic based on extended P2P trust model ESL-TM. In order to describe the complexity of trust relationships more effectively, positive and negative trust value are used to replace positive and negative events used in subjective logic. Also introduce the time decay factor and risk factors to calculate the trust degree of a node. Simulation results and analysis show that the model is more sensitive to malicious behaviors can effectively enhance the resilience against malicious nodes to improve the system the proportion of successful transactions.