CmsWeb/shop/bindUser.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 System.Data;
public partial class shop_bindUser : System.Web.UI.Page
{
protected int user_id;//会员id
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
Cms.Model.C_user userModel = adminUser.GetuserLoginState();
this.user_id = userModel.id;
Bind_date();
}
}
#region 赋值操作========================
public void Bind_date()
{
Cms.Model.C_user userModel = adminUser.GetuserLoginState();
this.user_id = userModel.id;
this.tel.Value = userModel.telphone;
this.card.Value = userModel.usercard;
this.openid.Value = userModel.openid;
}
#endregion
#region 绑定会员卡==============================
protected void Button1_Click(object sender, EventArgs e)
{
Cms.BLL.C_user cuser = new Cms.BLL.C_user();
Cms.Model.C_user userModel = adminUser.GetuserLoginState();
//Crm会员绑定
wxuser.userinfo xw = new wxuser.userinfo();
string selectDefault = is_default.SelectedValue.ToString();
if (selectDefault == "1")
{
if (this.card.Value.ToString() != "" && this.card.Value.ToString() != null)
{
xw = wxuser.getUserBind(userModel.openid.ToString(), this.tel.Value.ToString(), this.card.Value.ToString());
if (xw.result == "绑定成功")
{
//Crm查询会员信息
xw = wxuser.getuserinfo(userModel.openid);
if (xw.result == "获取成功")
{
//获取成功更新新会
userModel = cuser.GetModel(userModel.id);
后面还有 86 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
