Medical/Mobile/js/pl.ashx.cs

(开头部分) 2KB

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

using System;
using System.Collections.Generic;
using System.Web.SessionState;
using System.Web;
using System.Collections;
using DBUtility;

namespace WebApplication.Mobile.js
{
    /// <summary>
    /// pl 的摘要说明
    /// </summary>
    public class pl : IHttpHandler,IRequiresSessionState
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            //context.Response.Write("Hello World");
            if (context.Request["content"] != null && context.Request["newsinfoid"] != null && context.Request["title"] != null)
            {
                if (context.Session["LoginUserInfoID"] == null) 
                {
                    context.Response.Write("评论失败,请登录后评论!");
                }
                else
                {
                    BLL.Models.GZXX_Model bll = new BLL.Models.GZXX_Model();
                    Hashtable ht = new Hashtable();
                    ht.Add("ChannelID", 1000055);
                    ht.Add("ClassID", 97);
                    ht.Add("Title", context.Request["title"]);
                    ht.Add("Inputer", context.Session["LoginNameInfo"]);
                    ht.Add("DepartID", 1);
                    ht.Add("Content", context.Request["content"]);
                    ht.Add("UserInfoID", context.Session["LoginUserInfoID"]);
                    ht.Add("NewsInfoID", context.Request["newsinfoid"]);
                    ht.Add("UserName", context.Session["LoginUserName"]);
                    ht.Add("CreateDate", DateTime.Parse(DbHelperSQL.GetSingle("select getdate()").ToString()).ToString("yyyy-MM-dd HH:mm:ss"));

                    if (bll.AddContent("GZXX_U_Comment", ht) > 0)
                    {
                        context.Response.Write("OK");
                    }
                    else
                    {
                        context.Response.Write("评论失败,请稍后重试!");
                    }
                }
            }
            else
            {
                context.Response.Write("参数错误!");
            }
        }

        public bool IsReusable
        {
            get
            {
后面还有 5 行代码,购买后查看完整代码

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

AI 解读

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

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