private void GetYPLogin(out string msg) { msg = string.Empty; int nId = 0; try { SuperLoginServiceClient client = new SuperLoginServiceClient(); var tokent = client.GetAccessTokenInType(nCsid, 2).m_AccessToken.ToString(); msg = "{\"number\":\"0\",\"msg\":\"\",\"token\":\"" + tokent + "\"}"; } catch (Exception ex) { msg = "{\"number\":\"-1\",\"msg\":\"失败\",\"token\":\"\"}"; } }
protected void Page_Load(object sender, EventArgs e) { lbError.Visible = false; SuperLoginServiceClient client = new SuperLoginServiceClient(); try { var tokent = client.GetAccessTokenInTypeByDealerId(Convert.ToInt32(TID), 2).m_AccessToken.ToString(); token.Value = tokent; } catch (Exception ex) { NeedRedirect = "0"; lbError.Visible = true; BLL.Loger.Log4Net.Error("亚超登录-调用接口报错,会员编号为:" + TID, ex); } wkopuserid.Value = BLL.Util.GetLoginUserID().ToString();; }