AjaxResponse/userChannel.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 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;
using System.Threading;
public partial class AjaxResponse_userChannel : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
bool IsThreadSleep = Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings["IsThreadSleep"]);
if (IsThreadSleep)
{
int ThreadSleepTime = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["ThreadSleepTime"]);
Thread.Sleep(ThreadSleepTime);
}
if (Request.Params["handleType"] != null)
{
if (Request.Params["handleType"] == "GetChannelNewList")
{
int channelId = Convert.ToInt32(Request.Params["ChannelId"]);
int currentPageIndex =Convert.ToInt32(Request.Params["CurrentPageIndex"].ToString().Trim());
int pageMessageNum = Convert.ToInt32(Request.Params["PageMessageNum"].ToString().Trim());
string result = GetChannelNewList(channelId, currentPageIndex, pageMessageNum);
WriteToClient(result);
}
else if (Request.Params["handleType"] == "GetFirendNewList")
{
string orderBy = Request.Params["OrderBy"];
int selfId=Convert.ToInt32(Request.Params["SelfId"]);
string result = GetFirendNewList(selfId, orderBy);
WriteToClient(result);
}
}
}
private void WriteToClient(string result)
{
Response.Clear();
Response.Write(result);
Response.Flush();
Response.End();
}
private string GetChannelNewList(int channelId, int currentPageIndex, int pageMessageNum)
{
try
{
WebHL.BLL.TBChannelNews channelNews = new WebHL.BLL.TBChannelNews();
WebHL.BLL.TBUserChannel channel = new WebHL.BLL.TBUserChannel();
WebHL.Model.TBUserChannel model = new WebHL.Model.TBUserChannel();
model = channel.GetModel(channelId);
StringBuilder result = new StringBuilder();
string strWhere = "BelongChannelId=" + channelId.ToString();
int logCount = channelNews.GetLogCount(strWhere);
DataTable dt = channelNews.GetList(pageMessageNum, currentPageIndex, strWhere).Tables[0];
后面还有 53 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
