BBSService/Bbs/S_Topics.cs

(开头部分) 4KB

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

using System;
using System.Web.Services;
using System.Xml;
using BaseConfig.BaseBLL;
using BBS.Model;
using System.Text.RegularExpressions;
using BaseConfig;

namespace BBS.WebService
{
    /// <summary>
    ///S_Topics 的摘要说明
    /// </summary>
    [WebService(Namespace = "http://bbs.netluntan.com/")]
    [WebServiceBinding(ConformsTo = WsiProfiles.BasicProfile1_1)]
    public class S_Topics : System.Web.Services.WebService
    {
        public S_Topics()
        {
            //如果使用设计的组件,请取消注释以下行 
            //InitializeComponent(); 
        }

        /// <summary>
        /// 需要登录人回复的帖子
        /// </summary>
        /// <returns></returns>
        [WebMethod(EnableSession = true)]
        public XmlDocument GetVerifiedCount()
        {
            XmlDocument xd = new XmlDocument(); //表示XML文档
            XmlDeclaration xde;     //声明xml结点

            xde = xd.CreateXmlDeclaration("1.0", "utf-8", null);
            xd.AppendChild(xde);
            XmlElement xe_msgList = xd.CreateElement("Topics");

            if (Session[SessionKey.USER] == null)
            {
                xe_msgList.SetAttribute("counts", "-1");
                xd.AppendChild(xe_msgList);
                return xd;
            }

            X_UserInfo x = (X_UserInfo)Session[SessionKey.USER];

            string count = Pager.GetAllCount(" stateInfo='已审批'", "F_Topics").ToString();

            xe_msgList.SetAttribute("counts", count);
            xd.AppendChild(xe_msgList);
            return xd;
        }

        /// <summary>
        /// 需要登录人回复的帖子
        /// </summary>
        /// <returns></returns>
        [WebMethod(EnableSession = true)]
        public XmlDocument GetTopicByTopicId(int id)
        {
后面还有 67 行代码,购买后查看完整代码

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

AI 解读 AI

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

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