Ejemplo n.º 1
0
        public ActionResult SubmitFeedBack()
        {
            string key = Randoms.CreateRandomValue(2, true) + DateTime.Now.Ticks.ToString();
            //;

            FeedBackInfo info = new FeedBackInfo
            {
                FeedBackTypeId = WebHelper.GetFormInt("typeid"),
                Tag            = WebHelper.GetFormString("tag"),
                LinkMan        = WebHelper.GetFormString("LinkMan"),
                Tel            = WebHelper.GetFormString("Tel"),
                Mobile         = WebHelper.GetFormString("Moblie"),
                Email          = WebHelper.GetFormString("Email"),
                Title          = WebHelper.GetFormString("Title"),
                Body           = WebHelper.GetFormString("body"),
                AddTime        = DateTime.Now,
                Reply          = "",
                ReplyTime      = DateTime.Now,
                State          = 0,
                IsOut          = WebHelper.GetFormInt("isOut"),
                Ip             = WebHelper.GetIP(),
                SearchKey      = key
            };

            FeedBack.CreateFeedBackInfo(info);

            //发送邮件提醒
            Emails.SendFeedbackMsg(info);


            return(AjaxResult("success", key));
        }