コード例 #1
0
        public ActionResult Index()
        {
            var date  = time.Now.ToString("yyyyMMddHHmmss");
            var model = kmcService.RequestKMC(date, "003003", "https://test.www.orange-event.kr/kmc/callback");

            return(View(model));
        }
コード例 #2
0
        /// <summary>
        /// Request KMC Service
        /// </summary>
        /// <returns></returns>
        public RequestKMCModel Get()
        {
            var date  = time.Now.ToString("yyyyMMddHHmmss");
            var model = kmcService.RequestKMC(date, "003003", "https://test.www.orange-event.kr/kmc/callback");

            return(model);
        }
コード例 #3
0
        // GET: KidsNote
        public ActionResult Index()
        {
            var date = common.Now.ToString("yyyyMMddHHmmss");

            var urlCode  = "003005";
            var trUrl    = "https://test.www.orange-event.kr/kids-note/callback";
            var kmcState = ConfigurationManager.AppSettings["kmc.state"] as string;
            var kmcModel = new RequestKMCModel {
            };

            // 실서버 적용시 urlCode,trUrl 실서버용으로 변경
            if (kmcState == "release")
            {
                urlCode = "002001";
                trUrl   = "https://www.orange-event.kr/kids-note/callback";
            }


            if (!IsEventClose())
            {
                kmcModel = kmcService.RequestKMC(date, urlCode, trUrl);
            }

            var model = new KidsNoteModels {
                KidsNoteModel   = new KidsNoteModel {
                },
                RequestKMCModel = kmcModel
            };

            ViewBag.IsClose = IsEventClose();
            return(View(model));
        }
コード例 #4
0
        public ActionResult Index()
        {
            var isMarketingEntryLimit = service.IsRebrandingMarketingEntryLimit(2590);
            var now     = common.Now;
            var isClose = now >= new DateTime(2018, 10, 22);
            var isOpen  = now >= new DateTime(2018, 10, 15);

            var date = common.Now.ToString("yyyyMMddHHmmss");

            var kmcState       = ConfigurationManager.AppSettings["kmc.state"] as string;
            var urlCode        = "004004";
            var trMarketingUrl = "http://dev.www.orange-event.kr/ma/callback";

            var kmcMarketingModel = new RequestKMCModel {
            };

            // 실서버 적용시 urlCode,trUrl 실서버용으로 변경
            if (kmcState == "release")
            {
                urlCode        = "002005";
                trMarketingUrl = "https://www.orange-event.kr/ma/callback";
            }
            else if (kmcState == "debug")
            {
                urlCode        = "003010";
                trMarketingUrl = "http://test.www.orange-event.kr/ma/callback";
            }

            ViewBag.IsClose = true;

            if (!isClose && !isMarketingEntryLimit && isOpen)
            {
                ViewBag.IsClose   = false;
                kmcMarketingModel = kmcService.RequestKMC(date, urlCode, trMarketingUrl);
            }

            var model = new RebrandingMarketingModels {
                RebrandingMarketingModel = new RebrandingMarketingModel {
                },
                RequestMarketingKMCModel = kmcMarketingModel
            };

            return(View(model));
        }
コード例 #5
0
        public ActionResult Index(string utm_source = "", string adkey = "")
        {
            if (utm_source == "band")
            {
                ViewBag.url   = "https://" + System.Web.HttpContext.Current.Request["HTTP_HOST"] + "/emoticon?utm_source=band&utm_medium=share&utm_campaign=emoticon";
                ViewBag.image = "https://www.orange-event.kr/Content/images/orange4050/sns/band.jpg";
            }
            else
            {
                ViewBag.url   = "https://" + System.Web.HttpContext.Current.Request["HTTP_HOST"] + "/emoticon?utm_source=facebook&utm_medium=share&utm_campaign=emoticon";
                ViewBag.image = "https://www.orange-event.kr/Content/images/orange4050/sns/facebook.jpg";
            }

            if (adkey != null && adkey != "")
            {
                Session.Add("adkey", adkey);
            }

            var date = common.Now.ToString("yyyyMMddHHmmss");

            var urlCode  = "004008";
            var trUrl    = "http://dev.www.orange-event.kr/emoticon/callback";
            var kmcState = System.Configuration.ConfigurationManager.AppSettings["kmc.state"] as string;
            var kmcModel = new RequestKMCModel {
            };

            // 실서버 적용시 urlCode,trUrl 실서버용으로 변경
            if (kmcState == "release")
            {
                urlCode = "002007";
                trUrl   = "https://www.orange-event.kr/emoticon/callback";
            }
            else if (kmcState == "debug")
            {
                urlCode = "003013";
                trUrl   = "https://test.www.orange-event.kr/emoticon/callback";
            }

            // 이벤트종료일 제어
            if (!IsEventClose())
            {
                kmcModel = kmcService.RequestKMC(date, urlCode, trUrl);
            }


            var model = new OverFortyFiveDbModels
            {
                OverFortyFiveDbModel = new OverFortyFiveDbModel {
                },
                RequestKMCModel      = kmcModel
            };

            ViewBag.IsClose = IsEventClose();

            return(View(model));
        }
コード例 #6
0
        public ActionResult Index()
        {
            var urlCode = "";
            var trUrl   = "";

            var kmcState = ConfigurationManager.AppSettings["kmc.state"] as string;

            switch (kmcState)
            {
            case "local":
            default:
                urlCode = "004009";
                trUrl   = "http://dev.www.orange-event.kr/concert/callback";
                break;

            case "debug":
                urlCode = "003014";
                trUrl   = "https://test.www.orange-event.kr/concert/callback";
                break;

            //TODO: 실서버 적용시 urlCode,trUrl 실서버용으로 변경
            case "release":
                urlCode = "002008";
                trUrl   = "https://www.orange-event.kr/concert/callback";
                break;
            }

            var date     = common.Now.ToString("yyyyMMddHHmmss");
            var kmcModel = kmcService.RequestKMC(date, urlCode, trUrl);
            var model    = new FinancialConcertMarketingAgreeModel {
                FinancialConcertMarketingAgreeCreateModel = new FinancialConcertMarketingAgreeCreateModel(),
                FinancialConcertMarketingAgreeKMCModel    = kmcModel
            };

            ViewBag.AvailableApplicationTurn = 3;
            if (common.Now >= new DateTime(2018, 10, 30, 6, 0, 0))
            {
                ViewBag.AvailableApplicationTurn = 0;
            }
            else if (common.Now >= new DateTime(2018, 10, 23, 23, 0, 0))
            {
                ViewBag.AvailableApplicationTurn = 1;
            }
            else if (common.Now >= new DateTime(2018, 10, 16, 6, 0, 0))
            {
                ViewBag.AvailableApplicationTurn = 2;
            }

            return(View(model));
        }
コード例 #7
0
        // GET: fc
        public ActionResult OriginCustomerIndex()
        {
            if (IsEventClose())
            {
                ViewBag.IsClose = true;
                ViewBag.Message = "이벤트가 종료되었습니다.";
                return(View(new FinancialConsultantSharingOriginModels
                {
                    RequestKMCModel = new RequestKMCModel()
                }));
            }

            var urlCode = "";
            var trUrl   = "";
            var domain  = "";

            switch (kmcState)
            {
            case "local":
            default:
                urlCode = "004011";
                domain  = "http://dev.www.orange-event.kr";
                trUrl   = "http://dev.www.orange-event.kr/fc-sharing/callback";
                break;

            case "debug":
                urlCode = "003016";
                domain  = "http://test.www.orange-event.kr";
                //본인인증 모듈 로드시에 익스플로러 팝업이 안열리는 현상이 있음. http 프로토콜을 사용할것.
                trUrl = "http://test.www.orange-event.kr/fc-sharing/callback";
                break;

            case "release":
                urlCode = "002009";
                domain  = "https://www.orange-event.kr";
                trUrl   = "https://www.orange-event.kr/fc-sharing/callback";
                break;
            }
            var date     = common.Now.ToString("yyyyMMddHHmmss");
            var kmcModel = kmcService.RequestKMC(date, urlCode, trUrl);

            //공통 kmc callback 을 사용해서 구분하기 위해 해당변수 사용
            kmcModel.PlusInfo = "origin";

            var model = new FinancialConsultantSharingOriginModels
            {
                RequestKMCModel = kmcModel
            };

            ViewBag.url     = domain + "/fc-sharing";
            ViewBag.image   = domain + "/Content/images/FcEvent/sns/kakao.jpg";
            ViewBag.IsClose = false;
            if (!financialConsultantSharingService.limitNewCustomer())
            {
                ViewBag.Message = "준비된 경품이 모두 소진되었습니다.";
                ViewBag.IsClose = true;
            }
            //페이지 새로 로드시에 카카오톡 공유 불가능하도록.
            Session.Remove("kakaoFlag");
            return(View(model));
        }