Global weak solutions to the cauchy problem for a two-phase model at a node