public object GetSbool(string agentID) { string sbool = GetAppSetting.Get_Http(string.Format("{0}/api/mobileCommonAPI.ashx?opreateType=AgentProductLine", GetAppSetting.GetServerHost()), 3000); if (!string.IsNullOrEmpty(sbool)) { dynamic Data = null; if (!string.IsNullOrWhiteSpace(sbool)) { Data = Newtonsoft.Json.JsonConvert.DeserializeAnonymousType(sbool, new object[] { new { AgentProductLine = true } }); } if (Data != null && Data[0].AgentProductLine == true) { new CookieHelper().Remove("Sbool"); SetAuthCookie("Sbool", "true"); return(true); } else { new CookieHelper().Remove("Sbool"); SetAuthCookie("Sbool", "false"); return(false); } } return(false); }
/// <summary> /// 判断是分站配送还是主站配送 /// </summary> /// <param name="strPaymentType"></param> /// <returns></returns> public bool ChangePaymentType(string strPaymentType) { string st = GetAppSetting.Get_Http(string.Format("{0}/api/mobileCommonAPI.ashx?opreateType=AgentPayment", GetAppSetting.GetServerHost()), 30000); dynamic Data = null; if (!string.IsNullOrWhiteSpace(st)) { Data = Newtonsoft.Json.JsonConvert.DeserializeAnonymousType(st, new object[] { new { AgentPayment = "0" } }); } if (Data != null && Data[0].AgentPayment == "0") { return(true); } else if (Data != null && Data[0].AgentPayment == "1") { return(false); } else { if (strPaymentType == "0") { return(true); } else if (strPaymentType == "1") { return(false); } else { return(true); } } }
public Dictionary <string, Object> UserExist(string loginId) { string AgentID = GetAppSetting.GetAgentID(); Dictionary <string, Object> dic = new Dictionary <string, object>(); dynamic resultModel = CommonRequest.ApiAccountCheck(loginId, AgentID); return(resultModel); }