How to avoid divorce

My wife has failed a divorce case against me. We were living happily from last 13yrs and we have 2kids. Till 2015 everything was fine. Since I have had business loss, I had hand loans from money lender.she helped me in that problems giving money. I use to drink, but not harressed her. She is working lady, hence she has friends and colleagues. I know ..quite long time I was abserving that she is to fight with me n close the door of her n kids n chat with male friends ...than to she neglected my words One day when I asked in the night, she made big drama n called her father n other next door people. That time also I said, I have seen the chat msg between she n her friends that to late in the night... Since house belongs to her, she sacked me making insult n even her father kicked me ...it is almost 2yrs by Now... Now I have money n improved a lot, inbetween I gave her money for kids fee... Now two time mediation happened in Bangalore.. We are basically from Bangalore only...she did the same thing when I was not there with her... She called up one her colleague many times to house in my absence ...that to I was not aware, I use to meety wife n kids outside.. When her colleague wife called me n told about this, I took those people to my in-laws home... Before going there I told these people that my wife is not lime that, what u r thinking... When I asked my wife about this my wife scolded me again that u r foolish n drankerd... This happened in this February 2017...now am staying in pg.. Now she has field divorce case.. But am not interested.. So how can I regain my family