Combine 1 cup (240 ml) of distilled white vinegar with 1 cup (240 ml) of warm water in a spray bottle. Shake the solution to mix it thoroughly and dilute the vinegar. Make sure the spray bottle works by spraying the solution in the sink before using it on your carpet.  You can buy a spray bottle or you can use an empty one from an old cleaning solution. If you use a spray bottle that had something else in it previously, make sure to wash it out thoroughly before adding the new mixture. You don’t want to stain or contaminate your carpet with any unknown chemicals. Hold the spray bottle 3–4 in (7.6–10.2 cm) over your carpet and pull the trigger to apply the solution. Coat the entire stain with the solution so your carpet is completely saturated, and then let it soak in for 15 minutes.  Vinegar works great on dry or wet urine stains. Don’t pat the vinegar dry immediately since it needs to soak into the pad underneath the carpet to fully eliminate the odor. Use an old cleaning cloth or sponge and press onto the vinegar to soak up the liquid. Work across the entire stain so the carpet isn’t soaking wet. When you’re finished, immediately wash the cloth or throw it away. Wear cleaning gloves if you don’t want to get any vinegar or urine on your hands while you’re working. Coat the entire surface of the stain with a thin layer of baking soda and press it into the fabric with a cloth. Once the baking soda is applied, let it sit to pull out the moisture and odor from deep in your carpet. The baking soda will work back up toward the surface and form a thin crust on your carpet.  If you’re worried about the vinegar and baking soda changing the color of your carpet, test the mixture in a small, inconspicuous area before covering the stain. For an extra odor-fighting boost, mix a few drops of your favorite essential oil with the baking soda before sprinkling it on. Tea tree, lavender, or lemongrass oil are all good options. When the baking soda is completely dry, run your vacuum over the area to lift it out of your carpet....

TL;DR in Chinese:
将水和白醋倒入喷瓶里混匀。 将溶液喷在尿渍上，静置15分钟。 轻擦地毯，吸干多余的醋。 用小苏打覆盖着醋溶液，给地毯除臭。 用吸尘机吸掉变干的小苏打。