One step method of ions regulation and defect passivation of perovskite film for high performance photodetector