Esempio n. 1
0
        /// <summary>
        /// 会员状态调整
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public static dt_Dyn_ChangeMemberStatus_res ChangeMemberStatus(dt_Dyn_ChangeMemberStatus_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_ChangeMemberStatus_obService请求信息:" + reqStr);
                si_Dyn_ChangeMemberStatus_obService web = new si_Dyn_ChangeMemberStatus_obService();

                dt_Dyn_ChangeMemberStatus_res res = web.si_Dyn_ChangeMemberStatus_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.ChangeMemberStatus.ToString(), isok);
                }
            }
        }
Esempio n. 2
0
        /// <summary>
        /// 会员状态调整
        /// </summary>
        /// <param name="req"></param>
        /// <returns></returns>
        public static dt_Dyn_ChangeMemberStatus_res ChangeMemberStatus(dt_Dyn_ChangeMemberStatus_req req)
        {
            try
            {
                string   reqStr    = js.Serialize(req);
                DateTime timeStart = DateTime.Now;
                logger.Info("会员状态调整si_Dyn_ChangeMemberStatus_obService请求信息:" + reqStr);
                si_Dyn_ChangeMemberStatus_obService web = new si_Dyn_ChangeMemberStatus_obService();

                dt_Dyn_ChangeMemberStatus_res res = web.si_Dyn_ChangeMemberStatus_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_ChangeMemberStatus_obService", "会员状态调整");
                return(res);
            }
            catch (Exception ex)
            {
                throw new Exception(ex.Message);
            }
        }