CmsWeb/shop/integral.aspx.cs
(开头部分) 10KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Cms.Common;
public partial class shop_integral : System.Web.UI.Page
{
protected int user_id;//会员id
protected string classIdList;
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Cms.Model.C_user userModel = adminUser.GetuserLoginState();
this.user_id = userModel.id;
Cms.BLL.C_user bll = new Cms.BLL.C_user();
Cms.Model.C_user model = new Cms.BLL.C_user().GetModel(user_id);
wxuser.userinfo xw = new wxuser.userinfo();
try
{
xw = wxuser.getuserinfo(model.openid);
model.userallscore = Convert.ToInt32(Math.Round(Convert.ToDecimal(xw.userallscore)).ToString());
model.userscore = Convert.ToInt32(Math.Round(Convert.ToDecimal(xw.userscore)).ToString());
model.userYesScore = Convert.ToInt32(Math.Round(Convert.ToDecimal(xw.userallscore)).ToString()) - Convert.ToInt32(Math.Round(Convert.ToDecimal(xw.userscore)).ToString());
model.userlevel = xw.userlevel;
model.shopname = xw.shopname;
bll.Update(model);
}
catch (Exception ex)
{
JscriptMsg(ex.Message.ToString(), "NotJump", "Error");
}
Application["usercard"] = model.usercard;
Application["userscore"] = model.userscore;
Application["headimgurl"] = model.headimgurl;
bind_RepIntegral();
//产品列表
if (Request["classid"] == null || Request["classid"].ToString() == "")
{
classIdList = ToAspx.getcloumnid(94);
}
else
{
classIdList = ToAspx.getcloumnid(Convert.ToInt32(Request["classid"].ToString()));
}
BindDate(classIdList);
}
else
{
Cms.Model.C_user userModel = adminUser.GetuserLoginState();
this.user_id = userModel.id;
Cms.BLL.C_user bll = new Cms.BLL.C_user();
Cms.Model.C_user model = new Cms.BLL.C_user().GetModel(user_id);
wxuser.userinfo xw = new wxuser.userinfo();
try
{
后面还有 212 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
