MxWeiXinPF.Web/weixin/albums/alubmslist.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using MxWeiXinPF.Common;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace MxWeiXinPF.Web.weixin.albums
{
public partial class alubmslist : WeiXinPage
{
public int wid;
public int tid = 0;
protected string openid;
protected void Page_Load(object sender, EventArgs e)
{
OnlyWeiXinLook();
if (!IsPostBack)
{
wid = MyCommFun.RequestInt("wid");
tid = MyCommFun.RequestInt("tid");
openid = MyCommFun.RequestOpenid();
if (wid == 0)
{
MessageBox.Show(this, "参数不正确!");
return;
}
BLL.wx_albums_type bll = new BLL.wx_albums_type();
Model.wx_albums_type type = bll.GetModel(tid);
if (type != null && type.bannerPic != null && type.bannerPic.Trim()!="")
{
litBanner.Text = " <a href=\"javascript:;\"><img src=\"" + type.bannerPic + "\"></a> ";
}
BindAlbumsList();
litCopyRight.Text = getwebcopyright(wid);
}
}
/// <summary>
/// 绑定相册的封面以及其他基本信息
/// </summary>
private void BindAlbumsList()
{
BLL.wx_albums_info bll = new BLL.wx_albums_info();
IList<Model.wx_albums_info> alist = new List<Model.wx_albums_info>();
if (tid == 0)
{
alist = bll.GetModelList("wid=" + wid + " and isHidden=0 order by seq asc ");
}
else
{
alist = bll.GetModelList("wid=" + wid + " and isHidden=0 and typeId=" + tid + " order by seq asc");
}
StringBuilder sb = new StringBuilder("");
if (alist == null || alist.Count <= 0)
{
后面还有 62 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
