AjaxResponse/instantInitDate.aspx.cs

(开头部分) 3KB

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

using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Text;
public partial class AjaxResponse_instantInitDate : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Request.Params["handleType"] != null)
        {
            if (Request.Params["handleType"] == "GetInitData")
            {
                int selfId = Convert.ToInt32(Request.Params["SelfId"]);
                WriteToClient(GetInitData(selfId));
            }
        }
    }
    private void WriteToClient(string result)
    {
        Response.Clear();
        Response.Write(result);
        Response.Flush();
        Response.End();
    }
    private string GetInitData(int selfId)
    {
        try
        {
            StringBuilder result = new StringBuilder();
            #region//生成用户组返回字符串
            WebHL.BLL.TBUserDefGroup group = new WebHL.BLL.TBUserDefGroup();
            DataTable DTGroup = group.GetUserDefineGroupList(selfId).Tables[0];
            StringBuilder resultGroupName=new StringBuilder();
            StringBuilder resultGroupId=new StringBuilder();
            for (int i = 0; i < DTGroup.Rows.Count; i++)
            {
                resultGroupName.Append(DTGroup.Rows[i]["GroupName"]);
                resultGroupName.Append("$%");
                resultGroupId.Append(DTGroup.Rows[i]["Id"]);
                resultGroupId.Append("$%");
            }
            resultGroupName.Remove(resultGroupName.Length - 2, 2);
            resultGroupId.Remove(resultGroupId.Length - 2, 2);
            result.Append(resultGroupName);
            result.Append("$|");
            result.Append(resultGroupId);
            result.Append("$&");
            #endregion
            #region//生成好友列表返回字符串
            WebHL.BLL.TBUserFriend friend=new WebHL.BLL.TBUserFriend();
            DataTable DTFriend = friend.GetList(selfId).Tables[0];
            for (int i = 0; i < DTFriend.Rows.Count; i++)
            {
后面还有 29 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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