public ActionResult SaveSellerRegister1314(TelphoneLiangJoinEntity entity, string smsCode) { //1.验证手机验证码是否有效,是否过期 var sms = smsBll.GetList("{}").Where(t => t.Tel == entity.Telphone && t.Type == (int)SmsType.申请加盟).OrderByDescending(t => t.CreateDate).FirstOrDefault(); if (sms != null) { ValidateSmsCode(sms, smsCode); if (joinbll.NotExistTelphone(entity.Telphone))//号码个数为0true { //插入加盟表 joinbll.SaveForm("", entity); return(Content("提交成功")); } else { return(Content("该手机号提交的申请正在等待审核!请不要重复提交,着急请拨打电话咨询")); } } else { return(Content("验证码有误")); } }
public ActionResult SaveSellerRegister2(TelphoneLiangJoinEntity entity, string smsCode) { //1.验证手机验证码是否有效,是否过期 var sms = smsBll.GetList("{}").Where(t => t.Tel == entity.Telphone && t.Type == (int)SmsType.申请加盟).OrderByDescending(t => t.CreateDate).FirstOrDefault(); if (sms != null) { ValidateSmsCode(sms, smsCode); if (joinbll.NotExistTelphone(entity.Telphone))//号码个数为0true { entity.OpenId = CurrentWxUser.OpenId; entity.NickName = CurrentWxUser.NickName; entity.Sex = CurrentWxUser.Users.Sex; entity.WxCity = CurrentWxUser.Users.City; entity.WXPro = CurrentWxUser.Users.Province; entity.HeadimgUrl = CurrentWxUser.HeadimgUrl; //插入加盟表 joinbll.SaveForm("", entity); return(Content("提交成功")); } else { return(Content("该手机号提交的申请正在等待审核!请不要重复提交,着急请拨打电话咨询")); } } else { return(Content("验证码有误")); } }
public ActionResult SaveSellerRegister(TelphoneLiangJoinEntity entity) { var organize = organizeCache.GetEntityByTel(entity.Telphone); if (!string.IsNullOrEmpty(organize.OrganizeId)) { return(Content("该手机号申请的机构已经存在,请换个手机号重新申请!")); } if (joinbll.NotExistTelphone(entity.Telphone))//号码个数为0true,并且机构列表中不存在此手机号 { entity.OpenId = CurrentWxUser.OpenId; entity.NickName = CurrentWxUser.NickName; entity.Sex = CurrentWxUser.Users.Sex; entity.WxCity = CurrentWxUser.Users.City; entity.WXPro = CurrentWxUser.Users.Province; entity.HeadimgUrl = CurrentWxUser.HeadimgUrl; //插入加盟表 joinbll.SaveForm("", entity); //微信提醒 //WechatHelper.SendJoin(entity.CompanyName, entity.FullName, entity.Telphone); //订单提醒 //WechatHelper.SendToTemplate(entity.OpenId); return(Content("提交成功")); } else { return(Content("该手机号提交的申请正在等待审核,请不要重复提交!")); } }
/// <summary> /// 保存表单(新增、修改) /// </summary> /// <param name="keyValue">主键值</param> /// <param name="entity">实体对象</param> /// <returns></returns> public void SaveForm(string keyValue, TelphoneLiangJoinEntity entity) { try { service.SaveForm(keyValue, entity); } catch (Exception) { throw; } }
/// <summary> /// 修改核单状态 /// </summary> /// <param name="keyValue">主键值</param> /// <param name="State">状态:1-启动;0-禁用</param> public string UpdateCheckState(TelphoneLiangJoinEntity entity, int State) { try { string msg = service.UpdateCheckState(entity, State); CacheFactory.Cache().RemoveCache("OrganizeCache"); CacheFactory.Cache().RemoveCache("DepartmentCache"); CacheFactory.Cache().RemoveCache("RoleCache"); CacheFactory.Cache().RemoveCache("userCache"); return(msg); } catch (Exception) { throw; } }
public ActionResult SaveForm(string keyValue, TelphoneLiangJoinEntity entity) { telphoneliangjoinbll.SaveForm(keyValue, entity); return(Success("操作成功。")); }