public void DrawImage(Chain.Model.Mem mem, string FromUserName) { Bitmap smallWeiXin = new Bitmap(130, 130); Image weixinImg = QRCodeImage.CreateQRCode(mem.MemCard); Graphics g = Graphics.FromImage(smallWeiXin); g.DrawImage(weixinImg, new Point(-35, -35)); string savePath = this.Server.MapPath("~/Upload/WeiXin/Images/" + FromUserName + ".jpg"); Bitmap bigWeiXin = new Bitmap(200, 200); g = Graphics.FromImage(bigWeiXin); g.DrawImage(smallWeiXin, new Rectangle(0, 0, 200, 200), new Rectangle(0, 0, 130, 130), GraphicsUnit.Pixel); string bg = this.Server.MapPath("~/Upload/WeiXin/Images/bg.jpg"); Image bgImg = Image.FromFile(bg, true); Bitmap bmp = new Bitmap(bgImg.Width, bgImg.Height, PixelFormat.Format32bppArgb); g = Graphics.FromImage(bmp); g.InterpolationMode = InterpolationMode.HighQualityBicubic; g.SmoothingMode = SmoothingMode.HighQuality; g.CompositingQuality = CompositingQuality.HighQuality; g.DrawImage(bgImg, new Rectangle(0, 0, bgImg.Width, bgImg.Height), new Rectangle(0, 0, bgImg.Width, bgImg.Height), GraphicsUnit.Pixel); g.DrawImage(bigWeiXin, new RectangleF(50f, 60f, 200f, 200f), new RectangleF(0f, 0f, 200f, 200f), GraphicsUnit.Pixel); g.DrawString("NO:" + mem.MemCard, new Font("微软雅黑", 34f, FontStyle.Regular, GraphicsUnit.Pixel), Brushes.White, new PointF(280f, 70f)); g.DrawString("积分:" + mem.MemCard, new Font("微软雅黑", 30f, FontStyle.Regular, GraphicsUnit.Pixel), Brushes.White, new PointF(280f, 115f)); g.DrawString("余额:" + mem.MemMoney.ToString("F2"), new Font("微软雅黑", 30f, FontStyle.Regular, GraphicsUnit.Pixel), Brushes.White, new PointF(280f, 160f)); string pastStr = (mem.MemPastTime.ToString("yyyy-MM-dd") == "2900-01-01") ? "有效期:永久有效" : ("有效期:" + mem.MemPastTime.ToString("yyyy-MM-dd")); g.DrawString(pastStr, new Font("微软雅黑", 30f, FontStyle.Regular, GraphicsUnit.Pixel), Brushes.White, new PointF(280f, 205f)); bmp.Save(savePath, ImageFormat.Jpeg); }
public void UpdateMemInfo() { int flag = 0; try { string MemWeiXinCard = this.Request["MemWeiXinCard"]; string MemName = this.Request["MemName"]; bool MemSex = !(this.Request["MemSex"] == "0"); string tempMemBirthday = this.Request["MemBirthday"]; string MemCard = this.Request["MemCard"]; DateTime MemBirthday; if (DateTime.TryParse(tempMemBirthday, out MemBirthday)) { Chain.BLL.Mem memBll = new Chain.BLL.Mem(); Chain.Model.Mem memModel = memBll.GetModelByMemCard(MemCard); memModel.MemName = MemName; memModel.MemSex = MemSex; memModel.MemBirthday = MemBirthday; flag = memBll.Update(memModel); } else { flag = -1; } } catch { flag = 0; } this.Response.Write(flag); }
private void Do3ForMemberTransformByReplyTelNumberOrMemberCard() { string Content = this.xmlDoc.GetElementsByTagName("Content")[0].InnerText.Trim(); if (this.weiXinLogModel.RecordContentType == 1) { string pwd = DESEncrypt.Encrypt((Content == "#") ? "" : ((Content == "#") ? "" : Content)); this.memModel = this.memBll.GetModelByMemCard(this.weiXinLogModel.RecordContent); if (pwd == this.memModel.MemPassword) { this.memModel.MemWeiXinCard = this.weiXinLogModel.MemWeiXinCard; this.memBll.Update(this.memModel); this.DoCard("恭喜您已转移成微信会员"); } else { this.GiveWeiXinLodAssignment(this.weiXinLogModel.RecordContent, 1, "3", "", this.weiXinLogModel.ErrorTimes + 1); this.ErrorNewsHandle("由于您的错误操作次数过多,转微信会员模式已退出", "您发送的会员卡密码不正确,请重新发送"); } } else if (!PubFunction.curParameter.bolWeiXinSMSVcode || this.weiXinLogModel.RandomCode == Content) { this.memModel = this.memBll.GetMemInfoByMobile(this.weiXinLogModel.RecordContent); this.memModel.MemWeiXinCard = this.weiXinLogModel.MemWeiXinCard; this.memBll.Update(this.memModel); this.DoCard("恭喜您已转移成微信会员"); } else { this.GiveWeiXinLodAssignment(this.weiXinLogModel.RecordContent, 2, this.weiXinLogModel.StatusCode, this.weiXinLogModel.RandomCode, this.weiXinLogModel.ErrorTimes + 1); this.ErrorNewsHandle("由于您的错误操作次数过多,转微信会员模式已退出", "您发送的短信验证码有误,请重新发送"); } }
public int Update(Chain.Model.Mem model) { Chain.Model.SysShop modelShop = new Chain.BLL.SysShop().GetModel(model.MemShopID); int exists = 0; //0是独立商,非0是联盟商 if (modelShop.FatherShopID == 0) { exists = this.Exists(model.MemID, model.MemCard, model.MemMobile, model.MemCardNumber, model.MemShopID); } else { exists = Exists_Alliance(modelShop.FatherShopID, model.MemCard, model.MemMobile, model.MemCardNumber); } int result; if (exists != 1) { result = exists; } else { result = this.dal.Update(model); } return(result); }
public void DrawImage(Chain.Model.Mem mem, string FromUserName) { Bitmap smallWeiXin = new Bitmap(130, 130); Image weixinImg = QRCodeImage.CreateQRCode(mem.MemCard); Graphics g = Graphics.FromImage(smallWeiXin); g.DrawImage(weixinImg, new Point(-35, -35)); string savePath = base.Server.MapPath("~/Upload/WeiXin/Images/" + FromUserName + ".jpg"); Bitmap bigWeiXin = new Bitmap(200, 200); g = Graphics.FromImage(bigWeiXin); g.DrawImage(smallWeiXin, new Rectangle(0, 0, 200, 200), new Rectangle(0, 0, 130, 130), GraphicsUnit.Pixel); string bg = base.Server.MapPath("~/Upload/WeiXin/Images/bg.jpg"); Bitmap result = new Bitmap(bg); g = Graphics.FromImage(result); g.DrawImage(bigWeiXin, new RectangleF(50f, 60f, 200f, 200f), new RectangleF(0f, 0f, 200f, 200f), GraphicsUnit.Pixel); g.DrawString("NO:" + mem.MemCard, new Font("微软雅黑", 34f, FontStyle.Regular, GraphicsUnit.Pixel), Brushes.White, new PointF(280f, 70f)); g.DrawString("积分:" + mem.MemCard, new Font("微软雅黑", 30f, FontStyle.Regular, GraphicsUnit.Pixel), Brushes.White, new PointF(280f, 115f)); g.DrawString("余额:" + mem.MemMoney.ToString("F2"), new Font("微软雅黑", 30f, FontStyle.Regular, GraphicsUnit.Pixel), Brushes.White, new PointF(280f, 160f)); string pastStr = (mem.MemPastTime.ToString("yyyy-MM-dd") == "2900-01-01") ? "有效期:永久有效" : ("有效期:" + mem.MemPastTime.ToString("yyyy-MM-dd")); g.DrawString(pastStr, new Font("微软雅黑", 30f, FontStyle.Regular, GraphicsUnit.Pixel), Brushes.White, new PointF(280f, 205f)); result.Save(savePath, ImageFormat.Jpeg); }
private void GetMemBillList(int MemID) { Chain.BLL.Mem bllMem = new Chain.BLL.Mem(); Chain.Model.Mem modelMem = bllMem.GetModel(MemID); Chain.BLL.MemAddress bllAddress = new Chain.BLL.MemAddress(); DataTable dt; if (base.Request.QueryString["AddressID"] == null) { dt = bllAddress.GetList(" MemID=" + MemID + " and IsDefault=1 ").Tables[0]; } else { dt = bllAddress.GetList(string.Concat(new object[] { " MemID=", MemID, " and ID=", base.Request.QueryString["AddressID"] })).Tables[0]; } if (dt.Rows.Count == 0) { this.addNewAddress.Visible = true; } else { this.txtAddressID.Value = dt.Rows[0]["ID"].ToString(); this.addNewAddress.Visible = false; this.memname.InnerHtml = dt.Rows[0]["MemName"].ToString(); this.mobile.InnerHtml = dt.Rows[0]["MemMobile"].ToString(); this.address.InnerHtml = this.GetMemAddress(dt.Rows[0]["MemProvince"], dt.Rows[0]["MemCity"], dt.Rows[0]["MemCounty"], dt.Rows[0]["MemVillage"], dt.Rows[0]["MemDetailAddress"]); } }
private void BindMemInfo(int MemID) { Chain.BLL.Mem bllMem = new Chain.BLL.Mem(); Chain.Model.Mem modelMem = bllMem.GetModel(MemID); int exchangePoint = new Chain.BLL.GiftExchange().GetMemExchangePoint("MemID=" + MemID + " and ExchangeStatus=1"); this.spMemPointTotal.InnerHtml = (modelMem.MemPoint - exchangePoint).ToString(); }
protected void Page_Load(object sender, EventArgs e) { this.MemWeiXinCard = base.Request["MemWeiXinCard"]; this.GiftID = int.Parse(base.Request["GiftID"]); this.Num = int.Parse(base.Request["Num"]); this.mem = new Chain.BLL.Mem().GetMemByWeiXinCard(this.MemWeiXinCard); this.giftModel = new Chain.BLL.PointGift().GetModel(this.GiftID); }
private void DoCard(string NewsTitle) { Chain.Model.Mem mem = this.memBll.GetMemByWeiXinCard(this.FromUserName); string NewsDesc = string.IsNullOrEmpty(PubFunction.curParameter.strWeiXinShopName) ? "" : PubFunction.curParameter.strWeiXinShopName; NewsDesc = ((NewsDesc == "") ? "您的微信会员卡" : ("您的" + NewsDesc + "微信会员卡")); this.Card(mem, NewsTitle, NewsDesc); this.weiXinLogBLL.Delete(this.FromUserName); }
protected void Page_Load(object sender, EventArgs e) { if (!base.IsPostBack) { if (this.Session["MemID"] != null) { int MemID = int.Parse(this.Session["MemID"].ToString()); this.txtMemID.Value = MemID.ToString(); Chain.BLL.Mem bllMem = new Chain.BLL.Mem(); Chain.Model.Mem modelMem = bllMem.GetModel(MemID); this.spMemName.InnerHtml = modelMem.MemName; this.spMemCard.InnerHtml = modelMem.MemCard; this.spOrderAccount.InnerHtml = "wxcz" + DateTime.Now.ToString("yyyyMMddHHmmssffff"); if (base.Request["money"] != null) { this.spMoney.InnerHtml = base.Request["money"].ToString(); } if (base.Request["givemoney"] != null) { this.spGiveMoney.InnerHtml = base.Request["givemoney"].ToString(); } if (base.Request["point"] != null) { this.spPoint.InnerHtml = base.Request["point"].ToString(); } decimal amount = decimal.Parse(this.spMoney.InnerHtml) + decimal.Parse(this.spGiveMoney.InnerHtml); string total_fee = double.Parse((amount * 100m).ToString("#0")).ToString(); string url = string.Concat(new string[] { "http://", PubFunction.curParameter.strDoMain, "/mobile/member/RechargeJsApiPayPage.aspx?MemID=", this.txtMemID.Value, "&OrderAccount=", this.spOrderAccount.InnerHtml, "&money=", this.spMoney.InnerHtml, "&givemoney=", this.spGiveMoney.InnerHtml, "&point=", this.spPoint.InnerHtml }); string lineLinkurl = string.Format("https://open.weixin.qq.com/connect/oauth2/authorize?appid={0}&redirect_uri={1}&response_type=code&scope=snsapi_base&state={2}#wechat_redirect", PubFunction.curParameter.strWeiXinAppID, rechargeOnlineSure.UrlEncode(url), total_fee); this.txtUrl.Value = lineLinkurl; } else { base.Response.Redirect("login.aspx"); } } }
private void ConvertWeiXinMember(string postStr) { Chain.Model.Mem mem = this.memBll.GetMemByWeiXinCard(this.FromUserName); if (mem != null) { this.sendXML = ResponseSendStr.Text(postStr, "您已是微信会员"); } else { this.sendXML = ResponseSendStr.Text(postStr, "您已进入转微信会员模式," + this.weiXinRuleBLL.Reply2()); this.GiveWeiXinLodAssignment("", 0, "2", "", 0); this.weiXinLogBLL.Add(this.weiXinLogModel); } }
public void GetCustomerRecommend() { this.hidLevel.Value = base.Request["level"].ToString(); this.TreeView1.Nodes.Clear(); Chain.Model.Mem model = this.MemRecommend.GetModelByMemCard(base.Request["MemCard"]); TreeNode tr = new TreeNode("[顶层会员]" + model.MemName, model.MemID.ToString()); tr.ToolTip = model.MemCard; this.GetSubRecommend(model.MemID, ref tr); this.TreeView1.Nodes.Add(tr); this.TreeView1.ExpandAll(); this.TreeView1.Nodes[0].Select(); this.TreeView1_SelectedNodeChanged(null, null); }
public int MemRegister(bool isSMSVcode) { Chain.Model.Mem memModel = new Chain.Model.Mem(); if (!isSMSVcode) { memModel.MemCard = this.Content; } else { memModel.MemCard = this.weiXinLogModel.RecordContent; } memModel.MemPassword = DESEncrypt.Encrypt(""); memModel.MemName = ""; memModel.MemSex = true; memModel.MemIdentityCard = ""; if (!isSMSVcode) { memModel.MemMobile = this.Content; } else { memModel.MemMobile = this.weiXinLogModel.RecordContent; } memModel.MemPhoto = ""; memModel.MemBirthdayType = true; memModel.MemBirthday = Convert.ToDateTime("1900-1-1 0:00:00"); memModel.MemIsPast = false; memModel.MemPastTime = Convert.ToDateTime("2900-1-1 0:00:00"); memModel.MemPoint = 0; memModel.MemPointAutomatic = true; memModel.MemMoney = 0m; memModel.MemEmail = ""; memModel.MemAddress = ""; memModel.MemState = 0; memModel.MemRecommendID = 0; memModel.MemLevelID = 0; memModel.MemShopID = 1; memModel.MemCreateTime = DateTime.Now; memModel.MemRemark = ""; memModel.MemUserID = 1; memModel.MemTelePhone = ""; memModel.MemWeiXinCard = this.FromUserName; memModel.MemQRCode = ""; memModel.MemProvince = ""; memModel.MemCity = ""; memModel.MemCounty = ""; memModel.MemVillage = ""; return(this.memBll.Add(memModel)); }
public int AddMemFirst(Chain.Model.Mem model) { int exists = this.Exists(model.MemID, model.MemCard, model.MemMobile, model.MemCardNumber, model.MemShopID); int result; if (exists != 1) { result = exists; } else { result = this.dal.AddMemFirst(model); } return(result); }
public int UpdateMemSelf(Chain.Model.Mem model) { int exists = this.Exists(model.MemID, model.MemCard, model.MemMobile, "", model.MemShopID); int result; if (exists != 1) { result = exists; } else { result = this.dal.UpdateMemSelf(model); } return(result); }
private void ApplicationMemberCard() { Chain.Model.Mem mem = this.memBll.GetMemByWeiXinCard(this.FromUserName); if (mem == null) { this.sendXML = ResponseSendStr.Text(this.postStr, "您已进入会员申请模式," + this.weiXinRuleBLL.Reply1()); this.GiveWeiXinLodAssignment("", 0, "0", "", 0); this.weiXinLogBLL.Add(this.weiXinLogModel); } else { string NewsDesc = string.IsNullOrEmpty(PubFunction.curParameter.strWeiXinShopName) ? "" : PubFunction.curParameter.strWeiXinShopName; NewsDesc = ((NewsDesc == "") ? "您的微信会员卡" : ("您的" + NewsDesc + "微信会员卡")); this.Card(mem, "会员卡查询", NewsDesc); } }
protected void Page_Load(object sender, EventArgs e) { if (base.Request["MemID"] != "") { this.intMemID = int.Parse(base.Request["MemID"]); Chain.BLL.Mem bllMem = new Chain.BLL.Mem(); Chain.Model.Mem modelMem = new Chain.Model.Mem(); modelMem = bllMem.GetModel(this.intMemID); if (modelMem.MemName != "") { Label expr_75 = this.lblFrmTitle; expr_75.Text = expr_75.Text + "---" + modelMem.MemName; } } this.BindMemCountList(); }
private void Card(Chain.Model.Mem mem, string NewsTitle, string NewsDesc) { this.DrawImage(mem, this.FromUserName); string NewsUrlFirst = string.Concat(new object[] { "http://", PubFunction.curParameter.strDoMain, "/Upload/WeiXin/Images/", this.FromUserName, ".jpg?id=", Guid.NewGuid() }); string NewsUrlSecond = "http://" + PubFunction.curParameter.strDoMain + "/ReceptionPage/index.aspx?MemWeiXinCard=" + this.FromUserName; List <Chain.Model.WeiXinNews> newsList = this.GetModel(NewsTitle, NewsDesc, NewsUrlFirst, NewsUrlSecond); this.sendXML = ResponseSendStr.News(this.postStr, newsList); }
public List <Chain.Model.Mem> DataTableToList(DataTable dt) { List <Chain.Model.Mem> modelList = new List <Chain.Model.Mem>(); int rowsCount = dt.Rows.Count; if (rowsCount > 0) { for (int i = 0; i < rowsCount; i++) { Chain.Model.Mem model = this.dal.DataRowToModel(dt.Rows[i]); if (model != null) { modelList.Add(model); } } } return(modelList); }
protected void Page_Load(object sender, EventArgs e) { WxPayData notifyData = new Notify(this.Page).GetNotifyData(); if (!notifyData.IsSet("transaction_id")) { WxPayData res = new WxPayData(); res.SetValue("return_code", "FAIL"); res.SetValue("return_msg", "支付结果中微信订单号不存在"); Log.Error(base.GetType().ToString(), "The Pay result is error : " + res.ToXml()); this.Page.Response.Write(res.ToXml()); this.Page.Response.End(); } string transaction_id = notifyData.GetValue("transaction_id").ToString(); string out_trade_no = notifyData.GetValue("out_trade_no").ToString(); if (!this.QueryOrder(transaction_id)) { WxPayData res = new WxPayData(); res.SetValue("return_code", "FAIL"); res.SetValue("return_msg", "订单查询失败"); Log.Error(base.GetType().ToString(), "Order query failure : " + res.ToXml()); this.Page.Response.Write(res.ToXml()); this.Page.Response.End(); } else { string attach = notifyData.GetValue("attach").ToString(); string[] data = attach.Split(new char[] { ',' }); Chain.BLL.PointLog bllPoint = new Chain.BLL.PointLog(); int intUserID = 1; int intUserShopID = 1; int intMemID = int.Parse(data[0]); decimal money = decimal.Parse(data[1]); decimal giveMoney = decimal.Parse(data[2]); string rechargeAccount = data[3]; int point = int.Parse(data[4]); int count = new Chain.BLL.MemRecharge().GetRecordCount("RechargeAccount='" + rechargeAccount + "'"); if (count <= 0) { if (money + giveMoney <= 0m) { this.Context.Response.Write("-6"); } else { string strRemark = "无"; DateTime createTime = DateTime.Now; Chain.BLL.Mem bllMem = new Chain.BLL.Mem(); Chain.Model.Mem modelMem = bllMem.GetModel(intMemID); Chain.BLL.PointLog bllPoingLog = new Chain.BLL.PointLog(); Chain.Model.PointLog mdPoint = new Chain.Model.PointLog(); string Remark = string.Concat(new object[] { "会员微信充值,充值金额:[", money.ToString(), "],赠送:[", giveMoney, "],备注:", strRemark }); decimal sumMoney = money + giveMoney; Chain.Model.MemRecharge mdRechange = new Chain.Model.MemRecharge(); mdRechange.RechargeMemID = intMemID; mdRechange.RechargeAccount = rechargeAccount; mdRechange.RechargeMoney = money + giveMoney; mdRechange.RechargeShopID = intUserShopID; mdRechange.RechargeUserID = intUserID; mdRechange.RechargeCreateTime = createTime; mdRechange.RechargeIsApprove = true; mdRechange.RechargeRemark = strRemark; mdRechange.RechargePoint = point; mdRechange.RechargeType = 6; mdRechange.RechargeGive = giveMoney; mdRechange.RechargeCardBalance = modelMem.MemMoney + sumMoney; int flag = new Chain.BLL.MemRecharge().Add(mdRechange); modelMem.MemMoney += sumMoney; modelMem.MemPoint += point; bllMem.Update(modelMem); Chain.Model.MoneyChangeLog moneyChangeLogModel = new Chain.Model.MoneyChangeLog(); moneyChangeLogModel.MoneyChangeMemID = modelMem.MemID; moneyChangeLogModel.MoneyChangeUserID = intUserID; moneyChangeLogModel.MoneyChangeType = 1; moneyChangeLogModel.MoneyChangeAccount = rechargeAccount; moneyChangeLogModel.MoneyChangeMoney = sumMoney; moneyChangeLogModel.MemMoney = modelMem.MemMoney; moneyChangeLogModel.MoneyChangeCreateTime = DateTime.Now; moneyChangeLogModel.MoneyChangeGiveMoney = giveMoney; new Chain.BLL.MoneyChangeLog().Add(moneyChangeLogModel); mdPoint.PointMemID = modelMem.MemID; mdPoint.PointNumber = point; mdPoint.PointChangeType = 15; mdPoint.PointRemark = string.Concat(new object[] { "会员充值,充值金额:[", money, "],获得积分:[", point, "]" }); mdPoint.PointShopID = intUserShopID; mdPoint.PointCreateTime = DateTime.Now; mdPoint.PointUserID = intUserID; mdPoint.PointOrderCode = rechargeAccount; bllPoint.Add(mdPoint); if (PubFunction.curParameter.bolShopPointManage) { PubFunction.SetShopPoint(intUserID, intUserShopID, point, "会员充值扣除店铺积分", 2); } MEMPointUpdate.MEMPointRate(modelMem, point, rechargeAccount, 15, intUserID, intUserShopID); modelMem = new Chain.BLL.Mem().GetModel(modelMem.MemID); PubFunction.UpdateMemLevel(modelMem); WxPayData res = new WxPayData(); res.SetValue("return_code", "SUCCESS"); res.SetValue("return_msg", "OK"); Log.Info(base.GetType().ToString(), "order query success : " + res.ToXml()); this.Page.Response.Write(res.ToXml()); this.Page.Response.End(); } } } }
public bool ChangeCard(Chain.Model.Mem modelMem, string newMemCard, string newPwd) { return(this.dal.ChangeCard(modelMem, newMemCard, newPwd)); }
protected void Page_Load(object sender, EventArgs e) { this.MemWeiXinCard = base.Request["MemWeiXinCard"]; this.memModel = this.memBll.GetMemByWeiXinCard(this.MemWeiXinCard); }
protected void btnMemImport_Click(object sender, EventArgs e) { lock (DataExcelIn._syncObj) { this.strSavePath = this.strPath.Value; if (File.Exists(this.strSavePath)) { if (this.bolMainIndex) { string errstr = ""; DataTable dtMem = DataExcelInfo.CheckMemDataExcel(this.strSavePath, ref errstr); if (!string.IsNullOrEmpty(errstr)) { File.Delete(this.strSavePath); base.OutputWarn(errstr); } else if (DataExcelInfo.MemImport(dtMem, this.curParameter.bolPwd, this._UserID)) { base.OutputWarn("恭喜您,导入会员成功!"); Chain.BLL.Mem memBll = new Chain.BLL.Mem(); Chain.Model.Mem memModel = new Chain.Model.Mem(); for (int rowIndex = 0; rowIndex < dtMem.Rows.Count; rowIndex++) { decimal memMoney = Convert.ToDecimal(dtMem.Rows[rowIndex]["MemMoney"]); if (memMoney != 0m) { memModel = memBll.GetModelByMemCard(dtMem.Rows[rowIndex]["MemCard"].ToString()); Chain.Model.MoneyChangeLog moneyChangeLogModel = new Chain.Model.MoneyChangeLog(); moneyChangeLogModel.MoneyChangeMemID = memModel.MemID; moneyChangeLogModel.MoneyChangeUserID = this._UserID; moneyChangeLogModel.MoneyChangeType = 6; moneyChangeLogModel.MoneyChangeAccount = ""; moneyChangeLogModel.MoneyChangeMoney = memModel.MemMoney; moneyChangeLogModel.MemMoney = memModel.MemMoney; moneyChangeLogModel.MoneyChangeCreateTime = DateTime.Now; moneyChangeLogModel.MoneyChangeGiveMoney = memModel.MemMoney; new Chain.BLL.MoneyChangeLog().Add(moneyChangeLogModel); Chain.Model.MemRecharge modelRecharge = new Chain.Model.MemRecharge(); modelRecharge.RechargeMemID = memModel.MemID; modelRecharge.RechargeType = 1; modelRecharge.RechargeMoney = 0m; modelRecharge.RechargeGive = memModel.MemMoney; modelRecharge.RechargeRemark = "会员登记赠送金额,初始金额:" + memModel.MemMoney.ToString(); modelRecharge.RechargeShopID = this._UserShopID; modelRecharge.RechargeCreateTime = DateTime.Now; modelRecharge.RechargeAccount = PubFunction.curParameter.strMemRechargePrefix + DateTime.Now.ToString("yyMMddHHmmssffff"); modelRecharge.RechargeUserID = this._UserID; modelRecharge.RechargeCardBalance = memModel.MemMoney; modelRecharge.RechargeIsApprove = true; Chain.BLL.MemRecharge bllRecharge = new Chain.BLL.MemRecharge(); bllRecharge.Add(modelRecharge); } } this.strSavePath = ""; this.bolMainIndex = false; } else { File.Delete(this.strSavePath); base.OutputWarn("导入会员失败,请再次检验并改正会员数据!"); } } else { File.Delete(this.strSavePath); base.OutputWarn("您导入的会员数据还没有检验成功,请通过检验再导入会员数据。"); } } else { base.OutputWarn("您还没有检验会员数据,请先检验数据"); } } }
private string GetRecommendCard(int RecommendID) { Chain.BLL.Mem bllMem = new Chain.BLL.Mem(); Chain.Model.Mem modelMem = bllMem.GetModel(RecommendID); return(modelMem.MemCard); }
private void Membersrecharge(string memid, string total_fee, string jf, string GiveMoney, string out_trade_no, string time_end) { try { int id = int.Parse(memid); int jifen = int.Parse(jf); decimal givemoney = decimal.Parse(GiveMoney); decimal totalfee = decimal.Parse(total_fee) / 100m; time_end = string.Format("{0}-{1}-{2} {3}:{4}:{5}", new object[] { time_end.Substring(0, 4), time_end.Substring(4, 2), time_end.Substring(6, 2), time_end.Substring(8, 2), time_end.Substring(10, 2), time_end.Substring(12, 2) }); DateTime timeend = DateTime.Parse(time_end); Chain.Model.Mem mem = new Chain.Model.Mem(); Chain.BLL.Mem bllMem = new Chain.BLL.Mem(); mem = bllMem.GetModel(id); mem.MemPoint += jifen; mem.MemMoney += totalfee + givemoney; bllMem.Update(mem); Chain.BLL.MemRecharge bllMemRecharge = new Chain.BLL.MemRecharge(); bllMemRecharge.Add(new Chain.Model.MemRecharge { RechargeMemID = id, RechargeAccount = out_trade_no, RechargeMoney = totalfee, RechargeShopID = 1, RechargeUserID = 1, RechargeCreateTime = timeend, RechargeIsApprove = true, RechargeRemark = "会员微信充值", RechargePoint = jifen, RechargeType = 6, RechargeGive = givemoney, RechargeCardBalance = mem.MemMoney }); Chain.Model.MoneyChangeLog moneyChangeLogModel = new Chain.Model.MoneyChangeLog(); moneyChangeLogModel.MoneyChangeMemID = id; moneyChangeLogModel.MoneyChangeUserID = 1; moneyChangeLogModel.MoneyChangeType = 1; moneyChangeLogModel.MoneyChangeAccount = out_trade_no; moneyChangeLogModel.MoneyChangeMoney = totalfee + givemoney; moneyChangeLogModel.MemMoney = mem.MemMoney; moneyChangeLogModel.MoneyChangeCreateTime = timeend; moneyChangeLogModel.MoneyChangeGiveMoney = 0m; new Chain.BLL.MoneyChangeLog().Add(moneyChangeLogModel); if (jifen > 0) { Chain.Model.PointLog mdPoint = new Chain.Model.PointLog(); mdPoint.PointMemID = id; mdPoint.PointNumber = jifen; mdPoint.PointChangeType = 15; mdPoint.PointRemark = string.Concat(new object[] { "会员充值,充值金额:[", totalfee, "],获得积分:[", jifen, "]" }); mdPoint.PointShopID = 1; mdPoint.PointCreateTime = timeend; mdPoint.PointUserID = 1; mdPoint.PointOrderCode = out_trade_no; new Chain.BLL.PointLog().Add(mdPoint); MEMPointUpdate.MEMPointRate(mem, jifen, out_trade_no, 15, 1, 1); PubFunction.UpdateMemLevel(mem); } } catch { return; } base.Response.Write(this.ToXml("SUCCESS", "")); base.Response.End(); }
protected void GetMemToEdit(int memID) { Chain.Model.Mem modelMem = new Chain.Model.Mem(); Chain.BLL.Mem bllMem = new Chain.BLL.Mem(); modelMem = bllMem.GetModel(memID); DataTable dtMem = bllMem.GetItemAll(memID).Tables[0]; this.txtMemID.Value = modelMem.MemID.ToString(); this.txtMemCard.Value = modelMem.MemCard; this.txtMemCard.Attributes.Add("readonly", "true"); this.txtMemName.Value = modelMem.MemName; this.txtCardNumber.Value = modelMem.MemCardNumber; if (modelMem.MemSex) { this.sltMemSex.SelectedIndex = 0; } else { this.sltMemSex.SelectedIndex = 1; } this.txtMemIdentityCard.Value = modelMem.MemIdentityCard; string strMemBirthday = modelMem.MemBirthday.ToString(); if (strMemBirthday.IndexOf("1900") == -1 && strMemBirthday.IndexOf("0001") == -1) { this.txtMemBirthday.Value = modelMem.MemBirthday.ToShortDateString(); } else { this.txtMemBirthday.Value = ""; } if (modelMem.MemPoint.ToString() != "") { this.txtMemPoint.Value = modelMem.MemPoint.ToString(); } else { this.txtMemPoint.Value = "0"; } this.sltShop.Items.Add(new ListItem(new Chain.BLL.SysShop().GetModel(modelMem.MemShopID).ShopName, modelMem.MemShopID.ToString())); if (modelMem.MemMoney.ToString() != "") { this.txtMemMoney.Value = Math.Round(modelMem.MemMoney, 2).ToString(); } else { this.txtMemMoney.Value = "0"; } this.txtMemMobile.Value = modelMem.MemMobile; this.txtMemEmail.Value = modelMem.MemEmail; this.txtMemAddress.Value = modelMem.MemAddress; this.sltMemState.Value = modelMem.MemState.ToString(); this.sltMemLevelID.Value = modelMem.MemLevelID.ToString(); this.sltShop.Value = modelMem.MemShopID.ToString(); this.sltShop.Attributes.Add("disabled", "disabled"); this.txtMemRecommendID.Value = modelMem.MemRecommendID.ToString(); if (modelMem.MemRecommendID != 0) { Chain.Model.Mem modelRecommendMem = new Chain.Model.Mem(); modelRecommendMem = bllMem.GetModel(modelMem.MemRecommendID); this.txtMemRecommendCard.Value = modelRecommendMem.MemCard; } this.txtMemCreateTime.Value = modelMem.MemCreateTime.ToShortDateString(); string strMemPastTime = modelMem.MemPastTime.ToString(); if (strMemPastTime.IndexOf("2900") == -1 && strMemPastTime.IndexOf("0001") == -1) { this.txtMemPastTime.Value = modelMem.MemPastTime.ToShortDateString(); this.chkMemIsPast.Checked = false; } else { this.txtMemPastTime.Value = ""; this.chkMemIsPast.Checked = true; } if (modelMem.MemPhoto != "") { this.imgMemPhoto.Src = base.GetWebRoot() + modelMem.MemPhoto; this.txtMemPhoto.Value = modelMem.MemPhoto; } else { this.imgMemPhoto.Src = "../images/member/nophoto.gif"; this.txtMemPhoto.Value = ""; } this.txtMemRemark.Value = StringPlus.HtmlDecode(modelMem.MemRemark); this.sltMemUserID.Value = modelMem.MemUserID.ToString(); this.txtTelephone.Value = modelMem.MemTelePhone; if (modelMem.MemQRCode != "") { this.trTitle.Visible = true; this.trQrCode.Visible = true; this.imgQRCode.Src = modelMem.MemQRCode; } else { this.trTitle.Visible = false; this.trQrCode.Visible = false; } if (modelMem.MemProvince != "") { this.ucSysArea.sltProvince.Items.Clear(); PubFunction.BindSysArea(this.ucSysArea.sltProvince, 0); this.ucSysArea.sltProvince.Value = modelMem.MemProvince; } if (modelMem.MemCity != "" && modelMem.MemCity != null && modelMem.MemProvince != "" && modelMem.MemProvince != null) { this.ucSysArea.sltCity.Items.Clear(); PubFunction.BindSysArea(this.ucSysArea.sltCity, int.Parse(modelMem.MemProvince)); this.ucSysArea.sltCity.Value = modelMem.MemCity; } if (modelMem.MemCounty != "" && modelMem.MemCounty != null && modelMem.MemCity != "" && modelMem.MemCity != null) { this.ucSysArea.sltCounty.Items.Clear(); PubFunction.BindSysArea(this.ucSysArea.sltCounty, int.Parse(modelMem.MemCity)); this.ucSysArea.sltCounty.Value = modelMem.MemCounty; } if (modelMem.MemVillage != "" && modelMem.MemVillage != null && modelMem.MemCounty != "" && modelMem.MemCounty != null) { this.ucSysArea.sltVillage.Items.Clear(); PubFunction.BindSysArea(this.ucSysArea.sltVillage, int.Parse(modelMem.MemCounty)); this.ucSysArea.sltVillage.Value = modelMem.MemVillage; } PubFunction.BindEditCustomFields(this.tbCustomField, "Mem", dtMem.Rows[0]); }
public static void PointRateUpdate(Chain.Model.Mem mem, int point, int pointType, int mymemID, Chain.Model.SysUser User, string OrderAccount) { if (MEMPointUpdate.NowRateLevel <= MEMPointUpdate.RateLevel && mem.MemRecommendID != 0) { Chain.Model.Mem TEMPMEM = MEMPointUpdate.bll.GetModel(mem.MemRecommendID); if (TEMPMEM != null) { int temp = 0; if (MEMPointUpdate.RateType) { temp = Convert.ToInt32(decimal.Truncate(point * (MEMPointUpdate.MEMRate[MEMPointUpdate.NowRateLevel - 1] / 100m))); } else { temp = Convert.ToInt32(MEMPointUpdate.MEMRate[MEMPointUpdate.NowRateLevel - 1]); } if (PubFunction.IsShopPoint(User.UserShopID, ref temp)) { TEMPMEM.MemPoint += temp; int flag = MEMPointUpdate.bll.Update(TEMPMEM); MEMPointUpdate.sumPoint += temp; if (flag == 1) { PubFunction.UpdateMemLevel(TEMPMEM); Chain.Model.PointLog modelPoint = new Chain.Model.PointLog(); modelPoint.PointMemID = TEMPMEM.MemID; modelPoint.PointNumber = temp; modelPoint.PointChangeType = 9; modelPoint.PointShopID = TEMPMEM.MemShopID; modelPoint.PointCreateTime = DateTime.Now; modelPoint.PointUserID = TEMPMEM.MemUserID; modelPoint.PointOrderCode = MEMPointUpdate.PointOrderCode; modelPoint.PointGiveMemID = mymemID; switch (pointType) { case -1: modelPoint.PointRemark = string.Concat(new object[] { "卡号:", MEMPointUpdate.MEMCard, ",姓名:", MEMPointUpdate.MEMName, "的会员商品消费退货,获得积分:[", temp, "]" }); break; case 0: case 4: break; case 1: modelPoint.PointRemark = string.Concat(new object[] { "卡号:", MEMPointUpdate.MEMCard, ",姓名:", MEMPointUpdate.MEMName, "的会员商品消费,获得积分:[", temp, "]" }); break; case 2: modelPoint.PointRemark = string.Concat(new object[] { "卡号:", MEMPointUpdate.MEMCard, ",姓名:", MEMPointUpdate.MEMName, "的会员快速消费,获得积分:[", temp, "]" }); break; case 3: modelPoint.PointRemark = string.Concat(new object[] { "卡号:", MEMPointUpdate.MEMCard, ",姓名:", MEMPointUpdate.MEMName, "的会员充次,获得积分:[", temp, "]" }); break; case 5: modelPoint.PointRemark = string.Concat(new object[] { "卡号:", MEMPointUpdate.MEMCard, ",姓名:", MEMPointUpdate.MEMName, "的会员注册,获得积分:[", temp, "]" }); break; case 6: modelPoint.PointRemark = string.Concat(new object[] { "卡号:", MEMPointUpdate.MEMCard, ",姓名:", MEMPointUpdate.MEMName, "的会员手动增加积分,获得积分:[", temp, "]" }); break; default: switch (pointType) { case 14: modelPoint.PointRemark = string.Concat(new object[] { "卡号:", MEMPointUpdate.MEMCard, ",姓名:", MEMPointUpdate.MEMName, "的会员充时增加积分,获得积分:[", temp, "]" }); break; case 15: modelPoint.PointRemark = string.Concat(new object[] { "卡号:", MEMPointUpdate.MEMCard, ",姓名:", MEMPointUpdate.MEMName, "的会员充值增加积分,获得积分:[", temp, "]" }); break; } break; } Chain.BLL.PointLog bllPoint = new Chain.BLL.PointLog(); bllPoint.Add(modelPoint); PubFunction.SaveSysLog(TEMPMEM.MemUserID, 3, "会员积分提成", "会员" + TEMPMEM.MemName + "积分提成成功", TEMPMEM.MemShopID, DateTime.Now, PubFunction.ipAdress); } MEMPointUpdate.NowRateLevel++; MEMPointUpdate.PointRateUpdate(TEMPMEM, point, pointType, mymemID, User, OrderAccount); } } } }
private void Do2MemberTransform() { this.Content = this.xmlDoc.GetElementsByTagName("Content")[0].InnerText.Trim(); this.memModel = this.memBll.GetModelByMemCard(this.Content); if (this.memModel != null) { this.sendXML = ResponseSendStr.Text(this.postStr, "请发送您的会员卡密码,如果密码为空请回复 # 号"); this.GiveWeiXinLodAssignment(this.memModel.MemCard, 1, "3", "", 0); this.weiXinLogBLL.Update(this.weiXinLogModel); } else { Chain.Model.Mem mem = this.memBll.GetModelByMemMobile(this.Content); if (mem != null) { if (PubFunction.curParameter.bolWeiXinSMSVcode) { if (PubFunction.curParameter.bolSms) { if (SMSInfo.GetBalance(false) == "0") { string strTemplet = string.Format("由于本系统短信剩余条数不足,无法给您发送短信验证码;\r\n您的会员卡号为:{0}****{1},请发送您的会员卡密码,如果密码为空请回复 # 号", mem.MemCard.Substring(0, 1), mem.MemCard.Substring(mem.MemCard.Length - 1, 1)); this.sendXML = ResponseSendStr.Text(this.postStr, strTemplet); this.GiveWeiXinLodAssignment(mem.MemCard, 1, "3", "", 0); this.weiXinLogBLL.Update(this.weiXinLogModel); } else { string smsVCode = this.GetRandomCode(); string NewsDesc = string.IsNullOrEmpty(PubFunction.curParameter.strWeiXinShopName) ? "" : PubFunction.curParameter.strWeiXinShopName; NewsDesc = string.Concat(new string[] { "温馨提示,欢迎您申请从商家会员转", NewsDesc, "微信会员,您的", NewsDesc, "微信会员短信验证码是:", smsVCode }); this.sendXML = ResponseSendStr.Text(this.postStr, "请发送短信验证码"); SMSInfo.Send_GXSMS(false, this.Content, NewsDesc, ""); Chain.Model.SmsLog modelSms = new Chain.Model.SmsLog(); modelSms.SmsMemID = Convert.ToInt32(mem.MemID); modelSms.SmsMobile = this.Content; modelSms.SmsContent = NewsDesc; modelSms.SmsTime = DateTime.Now; modelSms.SmsShopID = 1; modelSms.SmsUserID = 1; modelSms.SmsAmount = PubFunction.GetSmsAmount(NewsDesc); modelSms.SmsAllAmount = modelSms.SmsAmount; Chain.BLL.SmsLog bllSms = new Chain.BLL.SmsLog(); bllSms.Add(modelSms); this.GiveWeiXinLodAssignment(this.Content, 2, "3", smsVCode, 0); this.weiXinLogBLL.Update(this.weiXinLogModel); } } else { string strTemplet = string.Format("由于本系统短信功能暂未开启,无法给您发送短信验证码;\r\n您的会员卡号为:{0}****{1},请发送您的会员卡密码,如果密码为空请回复 # 号", mem.MemCard.Substring(0, 1), mem.MemCard.Substring(mem.MemCard.Length - 1, 1)); this.sendXML = ResponseSendStr.Text(this.postStr, strTemplet); this.GiveWeiXinLodAssignment(mem.MemCard, 1, "3", "", 0); this.weiXinLogBLL.Update(this.weiXinLogModel); } } else { this.memModel = this.memBll.GetMemInfoByMobile(this.Content); this.memModel.MemWeiXinCard = this.FromUserName; this.memBll.Update(this.memModel); this.DoCard("恭喜您已转移成微信会员"); } } else { this.GiveWeiXinLodAssignment(this.weiXinLogModel.RecordContent, this.weiXinLogModel.RecordContentType, this.weiXinLogModel.StatusCode, this.weiXinLogModel.RandomCode, this.weiXinLogModel.ErrorTimes + 1); this.ErrorNewsHandle("由于您的错误操作次数过多,转微信会员模式已退出", "您发送的手机号或卡号在系统中没找着,请重新发送"); } } }
private void Do0ForApplicationMember() { this.Content = this.xmlDoc.GetElementsByTagName("Content")[0].InnerText.Trim(); if (Regex.IsMatch(this.Content, "^1[3|4|5|8]\\d{9}$")) { Chain.Model.Mem mem = this.memBll.GetModelByMemMobile(this.Content); if (mem != null) { this.sendXML = ResponseSendStr.Text(this.postStr, "该手机号已被注册,请重新输入一个新的手机号"); } else if (PubFunction.curParameter.bolWeiXinSMSVcode) { if (PubFunction.curParameter.bolSms) { if (SMSInfo.GetBalance(false) == "0") { this.sendXML = ResponseSendStr.Text(this.postStr, "商家短信不足,发送短信验证码失败,请与商家联系"); this.weiXinLogBLL.Delete(this.FromUserName); } else { string smsVCode = this.GetRandomCode(); string NewsDesc = string.IsNullOrEmpty(PubFunction.curParameter.strWeiXinShopName) ? "" : PubFunction.curParameter.strWeiXinShopName; NewsDesc = string.Concat(new string[] { "温馨提示,欢迎您注册", NewsDesc, "微信会员,您的", NewsDesc, "微信会员短信验证码是:", smsVCode }); this.sendXML = ResponseSendStr.Text(this.postStr, "请发送短信验证码"); SMSInfo.Send_GXSMS(false, this.Content, NewsDesc, ""); Chain.Model.SmsLog modelSms = new Chain.Model.SmsLog(); modelSms.SmsMemID = 0; modelSms.SmsMobile = this.Content; modelSms.SmsContent = NewsDesc; modelSms.SmsTime = DateTime.Now; modelSms.SmsShopID = 1; modelSms.SmsUserID = 1; modelSms.SmsAmount = PubFunction.GetSmsAmount(NewsDesc); modelSms.SmsAllAmount = modelSms.SmsAmount; Chain.BLL.SmsLog bllSms = new Chain.BLL.SmsLog(); bllSms.Add(modelSms); this.GiveWeiXinLodAssignment(this.Content, 2, "1", smsVCode, 0); this.weiXinLogBLL.Update(this.weiXinLogModel); } } else { this.sendXML = ResponseSendStr.Text(this.postStr, "系统短信功能暂未开启,发送短信验证码失败,请与商家联系"); this.weiXinLogBLL.Delete(this.FromUserName); } } else { int isOk = this.MemRegister(false); if (isOk > 0) { this.DoCard("恭喜您会员卡办理成功"); } else { string strErr = "系统错误,会员办卡失败!"; int num = isOk; if (num != -6) { switch (num) { case -2: strErr = "手机号码重复,会员办卡失败!"; break; case -1: strErr = "会员卡号重复,会员办卡失败!"; break; } } else { strErr = "卡面号重复,会员办卡失败!"; } this.sendXML = ResponseSendStr.Text(this.postStr, strErr); } } } else { this.GiveWeiXinLodAssignment("", 0, "0", "", this.weiXinLogModel.ErrorTimes + 1); this.ErrorNewsHandle("由于您的误操作次数过多,会员申请模式已退出", "您发送的手机号格式有误,请重新发送"); } }
public static void MEMPointRate(Chain.Model.Mem mem, int point, string OrderAccount, int pointType, int UserID, int UserShopID) { if (PubFunction.curParameter.chkPointLevel) { Chain.Model.PointRate PointRateModel = new Chain.BLL.PointRate().GetPointRate(); if (PointRateModel != null) { MEMPointUpdate.RateLevel = PointRateModel.PointRateLevel; MEMPointUpdate.RateType = PointRateModel.PointRateType; MEMPointUpdate.NowRateLevel = 1; MEMPointUpdate.MEMRate[0] = PointRateModel.MemLevel1; MEMPointUpdate.MEMRate[1] = PointRateModel.MemLevel2; MEMPointUpdate.MEMRate[2] = PointRateModel.MemLevel3; MEMPointUpdate.MEMRate[3] = PointRateModel.MemLevel4; MEMPointUpdate.MEMRate[4] = PointRateModel.MemLevel5; MEMPointUpdate.MEMRate[5] = PointRateModel.MemLevel6; MEMPointUpdate.MEMRate[6] = PointRateModel.MemLevel7; MEMPointUpdate.MEMRate[7] = PointRateModel.MemLevel8; MEMPointUpdate.MEMRate[8] = PointRateModel.MemLevel9; MEMPointUpdate.MEMRate[9] = PointRateModel.MemLevel10; MEMPointUpdate.MEMRate[10] = PointRateModel.MemLevel11; MEMPointUpdate.MEMRate[11] = PointRateModel.MemLevel12; MEMPointUpdate.MEMRate[12] = PointRateModel.MemLevel13; MEMPointUpdate.MEMRate[13] = PointRateModel.MemLevel14; MEMPointUpdate.MEMRate[14] = PointRateModel.MemLevel15; MEMPointUpdate.MEMCard = mem.MemCard; MEMPointUpdate.MEMName = mem.MemName; MEMPointUpdate.PointOrderCode = OrderAccount; Chain.Model.SysUser User = new Chain.BLL.SysUser().GetModel(UserID); if (User != null) { MEMPointUpdate.PointRateUpdate(mem, point, pointType, mem.MemID, User, OrderAccount); string remark = ""; switch (pointType) { case -1: remark = string.Concat(new object[] { "单号:[", OrderAccount, "],会员商品消费退货,多级推荐扣除运营商积分:[", MEMPointUpdate.sumPoint, "]" }); break; case 0: case 4: break; case 1: remark = string.Concat(new object[] { "单号:[", OrderAccount, "],会员商品消费,多级推荐扣除运营商积分:[", MEMPointUpdate.sumPoint, "]" }); break; case 2: remark = string.Concat(new object[] { "单号:[", OrderAccount, "],会员快速消费,多级推荐扣除运营商积分:[", MEMPointUpdate.sumPoint, "]" }); break; case 3: remark = string.Concat(new object[] { "单号:[", OrderAccount, "],会员充次,多级推荐扣除运营商积分:[", MEMPointUpdate.sumPoint, "]" }); break; case 5: remark = string.Concat(new object[] { "单号:[", OrderAccount, "],会员注册,多级推荐扣除运营商积分:[", MEMPointUpdate.sumPoint, "]" }); break; case 6: remark = string.Concat(new object[] { "单号:[", OrderAccount, "],会员手动增加积分,多级推荐扣除运营商积分:[", MEMPointUpdate.sumPoint, "]" }); break; default: switch (pointType) { case 14: remark = string.Concat(new object[] { "单号:[", OrderAccount, "],会员充时,多级推荐扣除运营商积分:[", MEMPointUpdate.sumPoint, "]" }); break; case 15: remark = string.Concat(new object[] { "单号:[", OrderAccount, "],会员充值,多级推荐扣除运营商积分:[", MEMPointUpdate.sumPoint, "]" }); break; } break; } PubFunction.SetShopPoint(User.UserID, UserShopID, 1, MEMPointUpdate.sumPoint, remark, 2); MEMPointUpdate.sumPoint = 0; } } } }