Exemple #1
0
        /// <summary>
        /// 会员积分明细查询
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public static dt_Dyn_GetPointDetail_res GetPointDetail(dt_Dyn_GetPointDetail_req req,
                                                               bool isdebug = false)
        {
            string   reqStr    = js.Serialize(req);
            string   resStr    = string.Empty;
            DateTime?timeStart = null;
            DateTime?timeEnd   = null;
            string   isok      = "OK";

            try
            {
                timeStart = DateTime.Now;
                logger.Info("会员积分明细查询si_Dyn_GetPointDetail_obService请求信息:" + reqStr);
                si_Dyn_GetPointDetail_obService web = new si_Dyn_GetPointDetail_obService();

                dt_Dyn_GetPointDetail_res res = web.si_Dyn_GetPointDetail_ob(req);

                resStr  = js.Serialize(res);
                timeEnd = DateTime.Now;
                logger.Info("响应信息" + resStr + "\r\n");

                if (res == null)
                {
                    isok = "NO";
                }

                return(res);
            }
            catch (Exception ex)
            {
                resStr = ex.Message;
                isok   = "NO";
                return(null);
            }
            finally
            {
                if (!isdebug)
                {
                    datalog.DataInfo(reqStr, resStr, timeStart, timeEnd, 0, SystemCode.GetPointDetail.ToString(), isok);
                }
            }
        }
Exemple #2
0
        /// <summary>
        /// 会员积分明细查询接口
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public static dt_Dyn_GetPointDetail_res GetPointDetail(dt_Dyn_GetPointDetail_req req)
        {
            try
            {
                si_Dyn_GetPointDetail_obService pi = new si_Dyn_GetPointDetail_obService();

                string   reqStr    = js.Serialize(req);
                DateTime timeStart = DateTime.Now;
                logger.Info("会员积分明细查询接口si_Dyn_GetPointDetail_obService请求信息:" + reqStr);

                dt_Dyn_GetPointDetail_res pis = pi.si_Dyn_GetPointDetail_ob(req);

                string   resStr  = js.Serialize(pis);
                DateTime timeEnd = DateTime.Now;
                logger.Info("响应信息" + resStr + "\r\n");

                datalog.DataInfo(reqStr, resStr, timeStart, timeEnd, 0, "si_Dyn_GetPointDetail_obService", "会员积分明细查询接口");
                return(pis);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }