Hello, you had cold symptoms first, but now the cold symptoms have disappeared and you are still spitting yellow phlegm. In this case, you should consider the symptoms caused by bacterial infection in the upper respiratory tract after a cold.
Suggestion:
You should drink more water and eat less spicy food now. You can use some antibacterial drugs, such as cefradine, and take it 1-2 days after the jaundice disappears to avoid the recurrence of the disease.