We consider the one-dimensional nonlinear Schrodinger equations that describe the dynamics of a Bose-EinsteinCondensates with time-dependent scattering length in a complex potential.Our results show that as long asthe integrable relation is satisfied,exact solutions of the one-dimensional nonlinear Schrodinger equation can be foundin a general closed form,and interactions between two solitons are modulated in a complex potential.We find that thechanges of the scattering length and trapping potential can be effectively used to control the interaction between twobright soliton.