//string postData = ""; /// <summary> /// 利嘉查询商品品牌 /// </summary> /// <param name="info">商品品牌查询参数</param> /// <returns>结果对象</returns> /// <remarks>2017-05-18 罗勤尧 创建</remarks> public static ResultLiJia SeachLiJiaBrand(LiJiaMemberSearch info) { //创建查询请求参数 string searchjosn = JsonHelper.ToJson(info); //查询接口 string searchpath = "brand.search"; string postData = ""; bool Result = false; ResultLiJia resultList = new ResultLiJia(); try { string responseAddDsDealer = MainHttp(host, searchpath, methodTs, Token, postData, searchjosn); if (!string.IsNullOrEmpty(responseAddDsDealer)) { var Assreturn = JsonSerializationHelper.JsonToObject <ResultLiJia>(responseAddDsDealer); if (Assreturn.Success) { resultList = Assreturn; } } } catch (Exception ex) { return(resultList); } return(resultList); }
//string postData = ""; /// <summary> /// 利嘉查询商品分类 /// </summary> /// <param name="info">商品分类</param> /// <returns>结果对象</returns> /// <remarks>2017-05-18 罗勤尧 创建</remarks> public static ResultLiJia SeachLiJiaProductCategory(LiJiaMemberSearch info) { //创建查询请求参数 string searchjosn = JsonHelper.ToJson(info); //查询接口 string searchpath = "category.search"; string postData = ""; bool Result = false; ResultLiJia resultList = new ResultLiJia(); try { string responseAddDsDealer = MainHttp(host, searchpath, methodTs, Token, postData, searchjosn); if (!string.IsNullOrEmpty(responseAddDsDealer)) { var Assreturn = JsonSerializationHelper.JsonToObject <ResultLiJia>(responseAddDsDealer); if (Assreturn.Success) { resultList = Assreturn; } else { //记录失败日志 Hyt.BLL.Log.LocalLogBo.Instance.WriteTo(searchjosn, "LiJia"); Hyt.BLL.Log.LocalLogBo.Instance.WriteReturn(responseAddDsDealer, "LiJia"); } } } catch (Exception ex) { return(resultList); } return(resultList); }
//string postData = ""; #region 会员接口 /// <summary> /// 利嘉新增会员 /// </summary> /// <param name="info">会员信息</param> /// <returns>利嘉会员系统编号</returns> /// <remarks>2017-05-18 罗勤尧 创建</remarks> public static ResultLiJia AddLiJiaMemerber(DsDealerLiJia info) { //创建新增分销商请求参数 string addds = JsonHelper.ToJson(info); //新增分销商接口 string pathAddDsDealer = "member.add"; string postData = ""; int id = 0; ResultLiJia Result = null; try { string responseAddDsDealer = MainHttpT(host, pathAddDsDealer, methodTs, Token, postData, addds); if (!string.IsNullOrEmpty(responseAddDsDealer)) { Result = JsonSerializationHelper.JsonToObject <ResultLiJia>(responseAddDsDealer); if (Result.Success) { return(Result); } else { //记录失败日志 Hyt.BLL.Log.LocalLogBo.Instance.WriteTo(addds, "LiJia"); Hyt.BLL.Log.LocalLogBo.Instance.WriteReturn(responseAddDsDealer, "LiJia"); } } } catch (Exception ex) { return(Result = new ResultLiJia() { Success = false, Message = ex.ToString() }); } return(Result); }
//string postData = ""; #region 订单接口 /// <summary> /// 利嘉新增订单 /// </summary> /// <param name="info">订单编号</param> /// <returns>是否添加成功</returns> /// <remarks>2017-05-18 罗勤尧 创建</remarks> public static ResultLiJia AddLiJiaOrder(LiJiaOrderModel info) { //创建新增分销商请求参数 string addorderstr = JsonHelper.ToJson(info); //新增订单接口 //Hyt.BLL.Log.LocalLogBo.Instance.WriteTo(addorderstr, "LiJia"); string addorderpath = "orderInfo.add"; string postData = ""; //bool Result = false; ResultLiJia Result = null; try { string responseAddDsDealer = MainHttpT(host, addorderpath, methodTs, Token, postData, addorderstr); if (!string.IsNullOrEmpty(responseAddDsDealer)) { Result = JsonSerializationHelper.JsonToObject <ResultLiJia>(responseAddDsDealer); if (Result.Success) { return(Result); } else { //记录失败日志 Hyt.BLL.Log.LocalLogBo.Instance.WriteTo(addorderstr, "LiJia"); Hyt.BLL.Log.LocalLogBo.Instance.WriteReturn(responseAddDsDealer, "LiJia"); } } } catch (Exception ex) { return(Result = new ResultLiJia() { Success = false, Message = ex.ToString() }); } return(Result); }