MxWeiXinPF.Web/weixin/sticket/index.aspx.cs
(开头部分) 9KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MxWeiXinPF.Common;
namespace MxWeiXinPF.Web.weixin.sticket
{
public partial class index : WeiXinPage
{
Model.wx_sTicket sstAction = new Model.wx_sTicket();
BLL.wx_sTicket actbll = new BLL.wx_sTicket();
BLL.wx_sttAwardItem itemBll = new BLL.wx_sttAwardItem();
BLL.wx_sttAwardUser ubll = new BLL.wx_sttAwardUser();
public string stitle = "";
public string sbrief = "";
/// <summary>
/// hidStatus:-2,隐藏中奖卡,弹出错误信息;
/// -1,直接跳转到结束页面;
/// 2,中奖了,显示中奖卡;
/// 3,中奖的最终结果展示;中奖卡隐藏;
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Page_Load(object sender, EventArgs e)
{
OnlyWeiXinLook();
if (!IsPostBack)
{
int aid = MyCommFun.RequestInt("aid", 0);
int wid = MyCommFun.RequestInt("wid", 0);
string openid = MyCommFun.RequestOpenid();
if (aid == 0 || wid == 0 || openid.Trim() == "")
{
hidStatus.Value = "-2";
hidErrInfo.Value = "访问的参数有问题";
return;
}
bindData(aid, openid);
}
}
/// <summary>
/// 绑定页面上的基本信息
/// </summary>
/// <param name="id">活动主键id</param>
/// <param name="openid"></param>
private void bindData(int id, string openid)
{
#region 活动详情
sstAction = actbll.GetModel(id);
if (sstAction == null)
{
hidStatus.Value = "-2";
hidErrInfo.Value = "该活动不存在!";
后面还有 194 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
