Affine phase retrieval is an important research field in Engineering Mathematics,and its algorithm implementation is a research hotspot in recent years.In this paper,we show a sufficient condition in which a signal from affine phase retrieval could be recovered with high probability,and we get the lower bound for recovering the signal successfully from affine phase retrieval with PhaseMax algorithm.Numerical simulations demonstrate that after obtaining a proper approximation vector from spectral initialization,PhaseMax algorithm can effectively solve the affine phase retrieval problems.