Example #1
0
        /// <summary>
        /// 提交留言
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        protected void btnPublish_Click(object sender, EventArgs e)
        {
            string accounts = "";

            if (Fetch.GetUserCookie() != null)
            {
                accounts = Fetch.GetUserCookie().Accounts;
            }

            GameFeedbackInfo info = new GameFeedbackInfo();

            info.FeedbackContent = CtrlHelper.GetTextAndFilter(txtContent);
            info.FeedbackTitle   = "";
            info.ClientIP        = GameRequest.GetUserIP();

            Message msg = FacadeManage.aideNativeWebFacade.PublishFeedback(info, accounts);

            if (msg.Success)
            {
                ShowAndRedirect("感谢您的问题反馈,我们将尽快给予回复,敬请留意!", "/Service/Feedback.aspx");
            }
            else
            {
                Show(msg.Content);
            }
        }
        /// <summary>
        /// 获取反馈实体
        /// </summary>
        /// <param name="feedbackID"></param>
        /// <returns></returns>
        public GameFeedbackInfo GetGameFeedbackInfo(int feedbackID)
        {
            string           sqlQuery     = string.Format("(NOLOCK) WHERE FeedbackID= {0}", feedbackID);
            GameFeedbackInfo gameFeedback = aideGameFeedbackProvider.GetObject <GameFeedbackInfo>(sqlQuery);

            return(gameFeedback);
        }
        private void ProcessData()
        {
            GameFeedbackInfo feedback = new GameFeedbackInfo();

            feedback.RevertContent = CtrlHelper.GetText(txtRevertContent);
            feedback.RevertUserID  = userExt.UserID;
            feedback.RevertDate    = DateTime.Now;
            feedback.Nullity       = Convert.ToByte(rbtnNullity.SelectedValue.Trim());
            feedback.IsProcessed   = 1;

            Message msg = new Message();

            if (StrCmd == "edit")
            {
                feedback.FeedbackID = IntParam;
                msg = FacadeManage.aideNativeWebFacade.RevertGameFeedback(feedback);
            }

            if (msg.Success)
            {
                ShowInfo("成功处理反馈", "FeedbackList.aspx", 1200);
            }
            else
            {
                ShowError(msg.Content);
            }
        }
Example #4
0
        public string GetFeedBack(int feedID)
        {
            GameFeedbackInfo gameFeedBackInfo = FacadeManage.aideNativeWebFacade.GetGameFeedBackInfo(feedID, 0);
            string           result;

            if (gameFeedBackInfo != null)
            {
                FacadeManage.aideNativeWebFacade.UpdateFeedbackViewCount(feedID);
                result = string.Concat(new object[]
                {
                    "{success:'success',userName:'******',fcon:'",
                    gameFeedBackInfo.FeedbackContent,
                    "',rcon:'",
                    gameFeedBackInfo.RevertContent,
                    "',count:'",
                    gameFeedBackInfo.ViewCount + 1,
                    "'}"
                });
            }
            else
            {
                result = "{success:'error'}";
            }
            return(result);
        }
Example #5
0
        protected void btnPublish_Click(object sender, EventArgs e)
        {
            if (txtAccounts.Text.Trim() != "")
            {
                Message umsg = accountsFacade.IsAccountsExist(CtrlHelper.GetText(txtAccounts));
                if (umsg.Success)
                {
                    Show("您输入的用户名不存在,请重新输入!");
                    this.txtAccounts.Text = "";
                    return;
                }
            }

            GameFeedbackInfo info = new GameFeedbackInfo();

            info.Accounts        = txtAccounts.Text.Trim();
            info.FeedbackContent = TextFilter.FilterScript(txtContent.Text.Trim()).Replace("'", "\\'");
            info.FeedbackTitle   = TextFilter.FilterScript(txtTitle.Text.Trim());
            info.ClientIP        = GameRequest.GetUserIP();

            Message msg = webFacade.PublishFeedback(info);

            if (msg.Success)
            {
                ShowAndRedirect("感谢您的问题反馈,我们将尽快给予回复,敬请留意!", "/Service/FeedbackList.aspx");
            }
            else
            {
                Show(msg.Content);
            }
        }
        public GameFeedbackInfo GetGameFeedBackInfo(int feedID, byte mode)
        {
            GameFeedbackInfo result;

            switch (mode)
            {
            case 1:
            {
                GameFeedbackInfo gameFeedbackInfo = base.Database.ExecuteObject <GameFeedbackInfo>(string.Format("SELECT * FROM GameFeedbackInfo(NOLOCK) WHERE Nullity=-0 AND FeedbackID<{0} ORDER BY FeedbackID DESC", feedID));
                result = gameFeedbackInfo;
                break;
            }

            case 2:
            {
                GameFeedbackInfo gameFeedbackInfo = base.Database.ExecuteObject <GameFeedbackInfo>(string.Format("SELECT * FROM GameFeedbackInfo(NOLOCK) WHERE Nullity=0 AND FeedbackID>{0} ORDER BY FeedbackID ASC", feedID));
                result = gameFeedbackInfo;
                break;
            }

            default:
            {
                GameFeedbackInfo gameFeedbackInfo = base.Database.ExecuteObject <GameFeedbackInfo>(string.Format("SELECT * FROM GameFeedbackInfo(NOLOCK) WHERE Nullity=0 AND FeedbackID={0}", feedID));
                result = gameFeedbackInfo;
                break;
            }
            }
            return(result);
        }
 public Message PublishFeedback(GameFeedbackInfo info, string accounts)
 {
     System.Collections.Generic.List <System.Data.Common.DbParameter> list = new System.Collections.Generic.List <System.Data.Common.DbParameter>();
     list.Add(base.Database.MakeInParam("strAccounts", accounts));
     list.Add(base.Database.MakeInParam("strTitle", info.FeedbackTitle));
     list.Add(base.Database.MakeInParam("strContent", info.FeedbackContent));
     list.Add(base.Database.MakeInParam("strClientIP", info.ClientIP));
     list.Add(base.Database.MakeOutParam("strErrorDescribe", typeof(string), 127));
     return(MessageHelper.GetMessage(base.Database, "NET_PW_AddGameFeedback", list));
 }
Example #8
0
        string AddFeedback(int ftype, GameFeedbackInfo info)
        {
            Message msg = aideNativeWebFacade.InsertGameFeedback(ftype, info);

            if (msg.Success)
            {
                return(JsonResultHelper.GetSuccessJson("保存成功"));
            }
            return(JsonResultHelper.GetErrorJson(msg.Content));
        }
Example #9
0
        /// <summary>
        /// 发表留言
        /// </summary>
        /// <returns></returns>
        public Message PublishFeedback(GameFeedbackInfo info)
        {
            List <DbParameter> parms = new List <DbParameter>();

            parms.Add(base.Database.MakeInParam("strAccounts", info.Accounts));
            parms.Add(base.Database.MakeInParam("strTitle", info.FeedbackTitle));
            parms.Add(base.Database.MakeInParam("strContent", info.FeedbackContent));
            parms.Add(base.Database.MakeInParam("strClientIP", info.ClientIP));
            parms.Add(base.Database.MakeOutParam("strErrorDescribe", typeof(string), 0x7f));
            return(MessageHelper.GetMessage(base.Database, "NET_PW_AddGameFeedback", parms));
        }
Example #10
0
        /// <summary>
        /// 游戏建议
        /// </summary>
        /// <returns></returns>
        public Message InsertGameFeedbackadvise(GameFeedbackInfo info)
        {
            List <DbParameter> parms = new List <DbParameter>();

            parms.Add(Database.MakeInParam("strAccounts", info.Accounts));
            parms.Add(Database.MakeInParam("strTitle", info.FeedbackTitle));
            parms.Add(Database.MakeInParam("strContent", info.FeedbackContent));
            parms.Add(Database.MakeInParam("strClientIP", info.ClientIP));
            parms.Add(Database.MakeOutParam("strErrorDescribe", typeof(string), 127));
            parms.Add(Database.MakeInParam("strEMail", info.EMail));
            return(MessageHelper.GetMessage(Database, "NET_PW_AddGameFeedbackadvise", parms));
        }
 public void RevertGameFeedback(GameFeedbackInfo gameFeedback)
 {
     System.Text.StringBuilder stringBuilder = new System.Text.StringBuilder();
     stringBuilder.Append("UPDATE GameFeedbackInfo SET ").Append("RevertUserID=@RevertUserID ,").Append("RevertContent=@RevertContent,").Append("RevertDate= @RevertDate, ").Append("Nullity= @Nullity, ").Append("IsProcessed= @IsProcessed ").Append("WHERE FeedbackID= @FeedbackID");
     System.Collections.Generic.List <System.Data.Common.DbParameter> list = new System.Collections.Generic.List <System.Data.Common.DbParameter>();
     list.Add(base.Database.MakeInParam("RevertUserID", gameFeedback.RevertUserID));
     list.Add(base.Database.MakeInParam("RevertContent", gameFeedback.RevertContent));
     list.Add(base.Database.MakeInParam("RevertDate", gameFeedback.RevertDate));
     list.Add(base.Database.MakeInParam("Nullity", gameFeedback.Nullity));
     list.Add(base.Database.MakeInParam("IsProcessed", gameFeedback.IsProcessed));
     list.Add(base.Database.MakeInParam("FeedbackID", gameFeedback.FeedbackID));
     base.Database.ExecuteNonQuery(System.Data.CommandType.Text, stringBuilder.ToString(), list.ToArray());
 }
Example #12
0
        public JsonResult DoMessage()
        {
            int    num  = TypeUtil.ObjectToInt(base.Request["param"]);
            string text = TypeUtil.ObjectToString(base.Request["body"]);

            if (num == 0 || text == "")
            {
                return(Json(new
                {
                    IsOk = false,
                    Msg = "参数错误"
                }));
            }
            if (user != null)
            {
                AdminPermission adminPermission = new AdminPermission(user, user.MoudleID);
                if (!adminPermission.GetPermission(4L))
                {
                    return(Json(new
                    {
                        IsOk = false,
                        Msg = "没有权限",
                        Url = "/NoPower/Index"
                    }));
                }
            }
            GameFeedbackInfo gameFeedbackInfo = new GameFeedbackInfo();

            gameFeedbackInfo.RevertContent = text;
            gameFeedbackInfo.RevertUserID  = user.UserID;
            gameFeedbackInfo.RevertDate    = DateTime.Now;
            gameFeedbackInfo.Nullity       = 0;
            gameFeedbackInfo.IsProcessed   = 1;
            gameFeedbackInfo.FeedbackID    = num;
            Message message = FacadeManage.aideNativeWebFacade.RevertGameFeedback(gameFeedbackInfo);

            if (message.Success)
            {
                return(Json(new
                {
                    IsOk = true,
                    Msg = "回复成功"
                }));
            }
            return(Json(new
            {
                IsOk = false,
                Msg = "操作失败"
            }));
        }
Example #13
0
        public string GetFeedBack(int feedID)
        {
            GameFeedbackInfo feedback = FacadeManage.aideNativeWebFacade.GetGameFeedBackInfo(feedID, 0);

            if (feedback != null)
            {
                FacadeManage.aideNativeWebFacade.UpdateFeedbackViewCount(feedID);
                return("{success:'success',userName:'******',fcon:'" + feedback.FeedbackContent + "',rcon:'" + feedback.RevertContent + "',count:'" + (feedback.ViewCount + 1) + "'}");
            }
            else
            {
                return("{success:'error'}");
            }
        }
        public string GetFeedBack(int feedID)
        {
            GameFeedbackInfo feedback = webFacade.GetGameFeedBackInfo(feedID, 0);

            if (feedback != null)
            {
                webFacade.UpdateFeedbackViewCount(feedID);
                return("{success:'success',userName:'******',fcon:'" + feedback.FeedbackContent + "',rcon:'" + feedback.RevertContent + "',count:'" + (feedback.ViewCount + 1) + "'}");
            }
            else
            {
                return("{success:'error'}");
            }
        }
Example #15
0
        public ActionResult MessageInfo()
        {
            int num = TypeUtil.ObjectToInt(base.Request["param"]);
            GameFeedbackInfo gameFeedbackInfo = new GameFeedbackInfo();

            if (num > 0)
            {
                gameFeedbackInfo = FacadeManage.aideNativeWebFacade.GetGameFeedbackInfo(num);
                if (gameFeedbackInfo == null)
                {
                    return(Redirect("/Customer/MessageList"));
                }
            }
            return(View(gameFeedbackInfo));
        }
        private void GameFeedbackDataBind()
        {
            if (StrCmd == "add")
            {
                litInfo.Text = "新增";
            }
            else
            {
                litInfo.Text = "更新";
            }

            if (IntParam <= 0)
            {
                return;
            }

            //获取反馈信息
            GameFeedbackInfo feedback = FacadeManage.aideNativeWebFacade.GetGameFeedbackInfo(IntParam);

            if (feedback == null)
            {
                ShowError("反馈信息不存在");
                Redirect("FeedbackList.aspx");
                return;
            }

            string     domain = "";
            ConfigInfo ci     = FacadeManage.aideNativeWebFacade.GetConfigInfo("SiteConfig");

            if (ci != null)
            {
                domain = ci.Field2;
            }

            CtrlHelper.SetText(lblFeedbackTitle, feedback.FeedbackTitle);
            CtrlHelper.SetText(lblFeedbackContent, feedback.FeedbackContent.Replace("/Upload/", domain + "/Upload/"));
            CtrlHelper.SetText(lblAccounts, feedback.UserID == 0 ? "匿名提问" : GetAccounts(feedback.UserID));
            CtrlHelper.SetText(lblFeedbackDate, feedback.FeedbackDate.ToString());
            CtrlHelper.SetText(lblClientIP, feedback.ClientIP);
            CtrlHelper.SetText(txtRevertContent, feedback.RevertContent);
            CtrlHelper.SetText(lblRevertUserID, GetMasterName(feedback.RevertUserID));
            CtrlHelper.SetText(lblRevertDate, feedback.RevertUserID == 0 ? "" : feedback.RevertDate.ToString());
            rbtnNullity.SelectedValue = feedback.Nullity.ToString();
            CtrlHelper.SetText(lbIsProcessed, Convert.ToByte(feedback.IsProcessed) == 0 ? "未处理" : "已处理");
        }
Example #17
0
 /// <summary>
 /// 游戏反馈
 /// </summary>
 /// <param name="req"></param>
 /// <returns></returns>
 public string AddFeedback(HttpRequest req)
 {
     try
     {
         int ftype             = Convert.ToInt32(req["ftype"] ?? "0");
         GameFeedbackInfo info = new GameFeedbackInfo();
         info.Accounts        = req.Form["accounts"];
         info.FeedbackTitle   = req.Form["title"];
         info.Phone           = req.Form["phone"];
         info.FeedbackContent = req.Form["content"];
         info.ClientIP        = req.Form["client_ip"];
         info.EMail           = req.Form["email"];
         info.QQ = req["qq"];
         return(AddFeedback(ftype, info));
     }
     catch (Exception ex)
     {
         return(JsonResultHelper.GetErrorJson(ex.Message));;
     }
 }
        /// <summary>
        /// 获取反馈意见实体
        /// </summary>
        /// <param name="issueID"></param>
        /// <param name="mode">模式选择, 0=当前主题, 1=上一主题, 2=下一主题</param>
        /// <returns></returns>
        public GameFeedbackInfo GetGameFeedBackInfo(int feedID, byte mode)
        {
            GameFeedbackInfo Issue = null;

            switch (mode)
            {
            case 1:
                Issue = Database.ExecuteObject <GameFeedbackInfo>(string.Format("SELECT * FROM GameFeedbackInfo(NOLOCK) WHERE Nullity=-0 AND FeedbackID<{0} ORDER BY FeedbackID DESC", feedID));
                break;

            case 2:
                Issue = Database.ExecuteObject <GameFeedbackInfo>(string.Format("SELECT * FROM GameFeedbackInfo(NOLOCK) WHERE Nullity=0 AND FeedbackID>{0} ORDER BY FeedbackID ASC", feedID));
                break;

            case 0:
            default:
                Issue = Database.ExecuteObject <GameFeedbackInfo>(string.Format("SELECT * FROM GameFeedbackInfo(NOLOCK) WHERE Nullity=0 AND FeedbackID={0}", feedID));
                break;
            }

            return(Issue);
        }
        /// <summary>
        /// 回复反馈
        /// </summary>
        /// <param name="gameFeedback"></param>
        public void RevertGameFeedback(GameFeedbackInfo gameFeedback)
        {
            StringBuilder sqlQuery = new StringBuilder( );

            sqlQuery.Append("UPDATE GameFeedbackInfo SET ")
            .Append("RevertUserID=@RevertUserID ,")
            .Append("RevertContent=@RevertContent,")
            .Append("RevertDate= @RevertDate, ")
            .Append("Nullity= @Nullity ")

            .Append("WHERE FeedbackID= @FeedbackID");

            var prams = new List <DbParameter>( );

            prams.Add(Database.MakeInParam("RevertUserID", gameFeedback.RevertUserID));
            prams.Add(Database.MakeInParam("RevertContent", gameFeedback.RevertContent));
            prams.Add(Database.MakeInParam("RevertDate", gameFeedback.RevertDate));
            prams.Add(Database.MakeInParam("Nullity", gameFeedback.Nullity));

            prams.Add(Database.MakeInParam("FeedbackID", gameFeedback.FeedbackID));

            Database.ExecuteNonQuery(CommandType.Text, sqlQuery.ToString( ), prams.ToArray( ));
        }
Example #20
0
        protected void btnPublish_Click(object sender, System.EventArgs e)
        {
            string accouts = "";

            if (Fetch.GetUserCookie() != null)
            {
                accouts = Fetch.GetUserCookie().Accounts;
            }
            GameFeedbackInfo gameFeedbackInfo = new GameFeedbackInfo();

            gameFeedbackInfo.FeedbackContent = CtrlHelper.GetTextAndFilter(this.txtContent);
            gameFeedbackInfo.FeedbackTitle   = "";
            gameFeedbackInfo.ClientIP        = GameRequest.GetUserIP();
            Message message = FacadeManage.aideNativeWebFacade.PublishFeedback(gameFeedbackInfo, accouts);

            if (message.Success)
            {
                this.ShowAndRedirect("感谢您的问题反馈,我们将尽快给予回复,敬请留意!");
            }
            else
            {
                this.ShowMessage(message.Content);
            }
        }
Example #21
0
        protected void Page_Load(object sender, EventArgs e)
        {
            //检查
            if (accounts == "")
            {
                Response.Write(1);
                return;
            }
            else
            {
                Message umsg = accountsFacade.IsAccountsExist(accounts);
                if (umsg.Success)
                {
                    Response.Write(1);
                    return;
                }
            }

            //逻辑处理
            GameFeedbackInfo info = new GameFeedbackInfo();

            info.Accounts        = accounts;
            info.FeedbackTitle   = TextFilter.FilterScript(content);
            info.FeedbackContent = TextFilter.FilterScript(content);
            info.ClientIP        = GameRequest.GetUserIP();
            Message msg = webFacade.PublishFeedback(info);

            if (msg.Success)
            {
                Response.Write(0);
            }
            else
            {
                Response.Write(1);
            }
        }
Example #22
0
        private void GameFeedbackDataBind( )
        {
            if (StrCmd == "add")
            {
                litInfo.Text = "新增";
            }
            else
            {
                litInfo.Text = "更新";
            }

            if (IntParam <= 0)
            {
                return;
            }

            //获取反馈信息
            GameFeedbackInfo feedback = aideNativeWebFacade.GetGameFeedbackInfo(IntParam);

            if (feedback == null)
            {
                ShowError("反馈信息不存在");
                Redirect("FeedbackList.aspx");
                return;
            }
            CtrlHelper.SetText(lblFeedbackTitle, feedback.FeedbackTitle);
            CtrlHelper.SetText(lblFeedbackContent, feedback.FeedbackContent);
            CtrlHelper.SetText(lblAccounts, feedback.Accounts);
            CtrlHelper.SetText(lblFeedbackDate, feedback.FeedbackDate.ToString( ));
            CtrlHelper.SetText(lblClientIP, feedback.ClientIP);
            CtrlHelper.SetText(lblViewCount, feedback.ViewCount.ToString( ));
            CtrlHelper.SetText(txtRevertContent, feedback.RevertContent);
            CtrlHelper.SetText(lblRevertUserID, GetMasterName(feedback.RevertUserID));
            CtrlHelper.SetText(lblRevertDate, feedback.RevertUserID == 0 ? "" : feedback.RevertDate.ToString( ));
            rbtnNullity.SelectedValue = feedback.Nullity.ToString( );
        }
 public Message PublishFeedback(GameFeedbackInfo info, string accouts)
 {
     return(this.webData.PublishFeedback(info, accouts));
 }
Example #24
0
 /// <summary>
 /// 发表留言
 /// </summary>
 /// <returns></returns>
 public Message PublishFeedback(GameFeedbackInfo info)
 {
     return(aideNativeWebDataProvider.PublishFeedback(info));
 }
 /// <summary>
 /// 发表留言
 /// </summary>
 /// <returns></returns>
 public Message PublishFeedback(GameFeedbackInfo info)
 {
     return(webData.PublishFeedback(info));
 }
Example #26
0
 /// <summary>
 ///  游戏建议
 /// </summary>
 /// <returns></returns>
 public Message InsertGameFeedbackadvise(GameFeedbackInfo info)
 {
     return(aideNativeWebDataProvider.InsertGameFeedbackadvise(info));
 }
Example #27
0
 /// <summary>
 /// 游戏bug反馈
 /// </summary>
 /// <param name="info"></param>
 /// <returns></returns>
 public Message InsertGameFeedback(int ftype, GameFeedbackInfo info)
 {
     return(aideNativeWebDataProvider.InsertGameFeedback(ftype, info));
 }
        private void PostData()
        {
            string text = GameRequest.GetFormString("content");

            System.Web.HttpPostedFile httpPostedFile = null;
            if (base.Request.Files.Count != 0)
            {
                httpPostedFile = base.Request.Files[0];
            }
            string text2 = "";

            if (httpPostedFile != null && httpPostedFile.ContentLength != 0)
            {
                try
                {
                    Image image = Image.FromStream(httpPostedFile.InputStream);
                    image.Dispose();
                }
                catch
                {
                    base.ShowAndRedirect("目前只支持图片格式文件,对您使用不便感到非常抱歉。", "/Mobile/Feedback.aspx");
                    return;
                }
                string text3 = "/Upload/Feedback/";
                string text4 = base.Server.MapPath(text3);
                if (!System.IO.Directory.Exists(text4))
                {
                    System.IO.Directory.CreateDirectory(text4);
                }
                string fileName = httpPostedFile.FileName;
                string str      = System.IO.Path.GetExtension(fileName).ToLower();
                string str2     = System.DateTime.Now.ToString("yyyyMMddHHmmss_ffff", System.Globalization.DateTimeFormatInfo.InvariantInfo) + str;
                string filename = text4 + str2;
                text2 = text3 + str2;
                httpPostedFile.SaveAs(filename);
            }
            if (text == "")
            {
                base.ShowAndRedirect("反馈意见不能为空。", "/Mobile/Feedback.aspx");
            }
            else
            {
                if (text.Length < 10)
                {
                    base.ShowAndRedirect("反馈意见最少输入10个字符。", "/Mobile/Feedback.aspx");
                }
                else
                {
                    string accouts = "";
                    if (Fetch.GetUserCookie() != null)
                    {
                        accouts = Fetch.GetUserCookie().Accounts;
                    }
                    if (text2 != "")
                    {
                        text += string.Format("<image src=\"{0}\"></image>", text2);
                    }
                    GameFeedbackInfo gameFeedbackInfo = new GameFeedbackInfo();
                    gameFeedbackInfo.FeedbackContent = Utility.HtmlEncode(text);
                    gameFeedbackInfo.FeedbackTitle   = "";
                    gameFeedbackInfo.ClientIP        = GameRequest.GetUserIP();
                    Message message = FacadeManage.aideNativeWebFacade.PublishFeedback(gameFeedbackInfo, accouts);
                    if (message.Success)
                    {
                        base.ShowAndRedirect("感谢您的问题反馈,我们将尽快给予回复,敬请留意!", "/Mobile/Feedback.aspx");
                    }
                    else
                    {
                        base.Show(message.Content);
                    }
                }
            }
        }
Example #29
0
 /// <summary>
 /// 回复反馈
 /// </summary>
 /// <param name="gameFeedback"></param>
 public Message RevertGameFeedback(GameFeedbackInfo gameFeedback)
 {
     aideNativeWebData.RevertGameFeedback(gameFeedback);
     return(new Message(true));
 }
Example #30
0
        /// <summary>
        /// 提交数据
        /// </summary>
        private void PostData()
        {
            string         content = GameRequest.GetFormString("content");
            HttpPostedFile imgFile = null;

            if (Request.Files.Count != 0)
            {
                imgFile = Request.Files[0];
            }
            string fileUrl = "";

            if (imgFile != null && imgFile.ContentLength != 0)
            {
                try
                {
                    System.Drawing.Image image = System.Drawing.Image.FromStream(imgFile.InputStream);
                    image.Dispose();
                }
                catch
                {
                    ShowAndRedirect("目前只支持图片格式文件,对您使用不便感到非常抱歉。", "/Mobile/Feedback.aspx");
                    return;
                }

                //文件上传
                string savePath = "/Upload/Feedback/";
                string dirPath  = Server.MapPath(savePath);
                if (!Directory.Exists(dirPath))
                {
                    Directory.CreateDirectory(dirPath);
                }
                string fileName = imgFile.FileName;
                string fileExt  = Path.GetExtension(fileName).ToLower();
                //保存图片
                string newFileName = DateTime.Now.ToString("yyyyMMddHHmmss_ffff", DateTimeFormatInfo.InvariantInfo) + fileExt;
                string filePath    = dirPath + newFileName;
                fileUrl = savePath + newFileName;
                imgFile.SaveAs(filePath);
            }

            if (content == "")
            {
                ShowAndRedirect("反馈意见不能为空。", "/Mobile/Feedback.aspx");
                return;
            }
            if (content.Length < 10)
            {
                ShowAndRedirect("反馈意见最少输入10个字符。", "/Mobile/Feedback.aspx");
                return;
            }

            //提交留言
            string accounts = "";

            if (Fetch.GetUserCookie() != null)
            {
                accounts = Fetch.GetUserCookie().Accounts;
            }

            if (fileUrl != "")
            {
                content = content + string.Format("<image src=\"{0}\"></image>", fileUrl);
            }

            GameFeedbackInfo info = new GameFeedbackInfo();

            info.FeedbackContent = Utility.HtmlEncode(content);
            info.FeedbackTitle   = "";
            info.ClientIP        = GameRequest.GetUserIP();

            Message msg = FacadeManage.aideNativeWebFacade.PublishFeedback(info, accounts);

            if (msg.Success)
            {
                ShowAndRedirect("感谢您的问题反馈,我们将尽快给予回复,敬请留意!", "/Mobile/Feedback.aspx");
            }
            else
            {
                Show(msg.Content);
            }
        }