The legal basis is the Contract Law of People's Republic of China (PRC).
Article 107 If a party fails to perform its contractual obligations or fails to perform the contractual obligations in conformity with the contract, it shall be liable for breach of contract such as continuing to perform, taking remedial measures or compensating for losses.