EasyShop/ashx/EditMsg.ashx.cs

(开头部分) 3KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using conn;
using System.Text;
using System.Data;
using FormatJosn;
using System.Data.SqlClient;
namespace Mall.ashx
{
    /// <summary>
    /// EditMsg 的摘要说明
    /// </summary>
    public class EditMsg : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            string ID, ClassName, MsgEmailTitle, MsgEmailContent, MsgPhoneTitle, MsgPhoneContent, MsgSiteTitle, MsgSiteContent;
            //msgid, classname, emailtitle, emailcontent, phonetitle, phonecontent, zntitle,zncontent
            ID = context.Request.Params["msgid"].ToString();
            ClassName = context.Request.Params["classname"].ToString();
            MsgEmailTitle = context.Request.Params["emailtitle"].ToString();
            MsgEmailContent = context.Request.Params["emailcontent"].ToString();
            MsgPhoneTitle = context.Request.Params["phonetitle"].ToString();
            MsgPhoneContent = context.Request.Params["phonecontent"].ToString();
            MsgSiteTitle = context.Request.Params["zntitle"].ToString();
            MsgSiteContent = context.Request.Params["zncontent"].ToString();
            DbConn conn = new DbConn();
            conn.open();
            StringBuilder strSql = new StringBuilder();
            strSql.Append("update  TB_MC_MsgEmailPhone set ClassName=@ClassName,addtime=@addtime");
            
            if (MsgEmailTitle == "no" | MsgEmailTitle == "no" | MsgEmailTitle == "" | MsgEmailTitle == null)
            {

            }
            else
            {
                strSql.Append(", MsgEmailTitle=@MsgEmailTitle, MsgEmailContent=@MsgEmailContent");
            }
            
            if (MsgPhoneContent == "no" | MsgPhoneContent == "no" | MsgPhoneContent == "" | MsgPhoneContent == null)
            {

            }
            else
            {
                strSql.Append(", MsgPhoneTitle=@MsgPhoneTitle , MsgPhoneContent=@MsgPhoneContent ");
            }
            if (MsgSiteTitle == "no" | MsgSiteContent == "no"|MsgSiteContent==""|MsgSiteContent==null)
            {

            }
            else
            {
                strSql.Append(", MsgSiteTitle=@MsgSiteTitle,MsgSiteContent=@MsgSiteContent");
            }
后面还有 32 行代码,购买后查看完整代码

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

AI 解读 AI

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

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