Пример #1
0
        /// <summary>
        /// 积分加减接口
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public static dt_Dyn_ActCreateTel_res ActCreateTel(dt_Dyn_ActCreateTel_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_ActCreateTel_obService请求信息:" + reqStr);
                si_Dyn_ActCreateTel_obService web = new si_Dyn_ActCreateTel_obService();

                dt_Dyn_ActCreateTel_res res = web.si_ActCreateTel_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.ActCreateTel.ToString(), isok);
                }
            }
        }
Пример #2
0
        /// <summary>
        /// 积分加减接口
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public static dt_Dyn_ActCreateTel_res ActCreateTel(dt_Dyn_ActCreateTel_req req)
        {
            try
            {
                string   reqStr    = js.Serialize(req);
                DateTime timeStart = DateTime.Now;
                logger.Info("积分加减接口si_Dyn_ActCreateTel_obService请求信息:" + reqStr);
                si_Dyn_ActCreateTel_obService web = new si_Dyn_ActCreateTel_obService();

                dt_Dyn_ActCreateTel_res res = web.si_ActCreateTel_ob(req);

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

                datalog.DataInfo(reqStr, resStr, timeStart, timeEnd, 0, "si_Dyn_ActCreateTel_obService", "积分加减接口");
                return(res);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }