protected void Page_Load(object sender, EventArgs e) { M_Third_Info crMod = new B_Third_Info().SelModelByName("CR"); //未配置信息,则先引导其去配置 if (crMod == null || string.IsNullOrEmpty(crMod.Key) || string.IsNullOrEmpty(crMod.Secret)) { Response.Redirect(CustomerPageAction.customPath2 + "APP/Suppliers.aspx"); } else if (string.IsNullOrEmpty(Code)) { function.WriteErrMsg("未传入Code值,请先登录"); } else { C_CopyRight crBll = new C_CopyRight(); if (string.IsNullOrEmpty(C_CopyRight.AccessToken)) { function.WriteErrMsg("获取Token失败,Code[" + Code + "]"); } Response.Redirect(Url); } }