G6PD and type 2 diabetes mellitus: Logistic regression analysis showed G6PD, triglyceride, cholesterol, IL-8, TNF-α, and macular edema were influencing factors for T2DM with DR.