INS and Hypomagnesemia: Hypomagnesemia is also a risk factor for PTDM, and its mechanism might be as follows: hypomagnesemia can reduce the activity of insulin tyrosine kinase, affect the synthesis and secretion of insulin, and cause hyperglycemia after transplantation.