They could have asked their friend Vlad to stop the invasion and not kill civilians, but instead they were worried about their Olympics.
And not only that, the Chinese were all too happy to turn around and tell Putin what the Americans where sharing with them:
> After one diplomatic exchange in December, U.S. officials received intelligence showing Beijing had shared the information with Moscow, telling the Russians that the United States was trying to sow discord and that China would not try to impede Russian plans, American officials said.
I guess it's not surprising. China stands to benefit even from the sanctions imposed on Russia. Money, technology, spare parts, electronics, etc. flowing into Russia will probably go through China. If Russia loses, they win. If Russia wins and NATO looks weak, they win too. Well played.