Currently, microbial leaching wastewater has caused immeasurable damage to the environment, so this wastewater must be properly treated to reduce environmental and biological damage. The purpose of this work is to study the physicochemical properties of chitosan, based on the optimized design of modified chitosan in microbial leaching wastewater treatment, using citric acid (CA) as the cross-linking agent chitosan (CTS) and two modified chitosan Chitosan, Chitosan-Citric Acid (CTS-CA) and Chitosan-Citrate-β-Cyclodextrin (CTS-CA-CD) from β-Cyclodextrin (CD) to Explore Modification Mechanisms. At the same time, the prepared modified chitosan was applied to the adsorption research of dye wastewater and heavy metal wastewater. With the increase of reaction temperature, the adsorption capacity of modified chitosan to Ni2+ also increased. It shows that the temperature is beneficial to the adsorption process. The higher the temperature, the better the adsorption effect of modified chitosan on Ni2+. The effect of initial solution pH on the adsorption process showed that at pH 7, the adsorption capacity of CTS-CA for Ni2+ was 33 mg/g, and the adsorption capacity of CTS-CA-CD for Ni2+ was 37 mg/g.