EasyShop/ashx/ReplyFeedBack.ashx.cs

(完整代码) 1KB

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using conn;
using System.Text;
using System.Data;
using FormatJosn;
using ExeSql;
using System.Data.SqlClient;
using System.Net;
using MyModels;
using BLL;
using Easy.COMMON;
namespace EasyShop.ashx
{
    /// <summary>
    /// ReplyFeedBack 的摘要说明
    /// </summary>
    public class ReplyFeedBack : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string id = context.Request.Params["id"].ToString();
            string replytext = context.Request.Params["replytext"].ToString();
            string userid = context.Request.Params["userid"].ToString();
            TB_MC_FeekBack tmf = new TB_MC_FeekBack();
            tmf.ID = int.Parse(id);
            tmf.ReplyContent = replytext;
            tmf.UserID = userid;
            System.Net.IPAddress addr = new System.Net.IPAddress(Dns.GetHostByName(Dns.GetHostName()).AddressList[0].Address);
            tmf.ReplyIP = StaticFunction.GetIP();//addr.ToString();
            tmf.ReplyTime=DateTime.Now;
            string result = "NO";
            int k = tmf.UpdateReply();
            if (k > 0)
            {
                result = "OK";
            }
            context.Response.Write(result);
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。