MxWeiXinPF.Web/weixin/ucard/duihuan.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MxWeiXinPF.Common;
using System.Text;
namespace MxWeiXinPF.Web.weixin.ucard
{
public partial class duihuan : WeiXinPage
{
protected string openid = "";
protected int wid = 0;
protected int sid = 0;//店铺的主键id
protected int degreeNum = 0;
protected int uid = 0;
BLL.wx_ucard_users_consumeinfo conBll = new BLL.wx_ucard_users_consumeinfo();
BLL.wx_ucard_gift giftBLL = new BLL.wx_ucard_gift();
protected void Page_Load(object sender, EventArgs e)
{
OnlyWeiXinLook();
openid = MyCommFun.RequestOpenid();
wid = MyCommFun.RequestInt("wid");
sid = MyCommFun.RequestInt("sid");
if (openid == "" || wid == 0 || sid == 0)
{
hidStatus.Value = "-1";
hidErrInfo.Value = "参数错误";
return;
}
bindData();
}
private void bindData()
{
BLL.wx_ucard_cardinfo cardBll = new BLL.wx_ucard_cardinfo();
Model.wx_ucard_cardinfo cardinfo = cardBll.GetModelBySid(sid);
if (cardinfo != null)
{
imgTopPic.ImageUrl = cardinfo.privilegesPic;
}
BLL.wx_ucard_users userBll = new BLL.wx_ucard_users();
Model.wx_ucard_users user = userBll.GetStoreUserInfo(openid, sid);
if (user == null)
{
return;
}
uid = user.id;
DateTime today = DateTime.Now;
IList<Model.wx_ucard_gift> glist = giftBLL.GetModelList(" sid="+sid+" and beginDate<='" + today.ToString() + "' and endDate>='" + today.ToString() + "'");
StringBuilder pStr = new StringBuilder();
if (glist != null && glist.Count > 0)
{
Model.wx_ucard_gift gift = new Model.wx_ucard_gift();
string sn = "";
int syNum = 0; //剩余次数
for (int i = 0; i < glist.Count; i++)
后面还有 54 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
