/// <summary> /// 获取OpenId /// </summary> public void OpenId(HttpContext context) { JsonHelper jsonHelper = new JsonHelper(context); string code = context.Request["code"]; var obj = service.GetOpenId(code); jsonHelper.Success("查询成功", obj); }