public static string posList(string comid, int pageindex, int pagesize) { var totalcount = 0; try { var prodata = new B2bCompanyInfoData(); var list = prodata.PosList(comid, pageindex, pagesize, out totalcount); IEnumerable result = ""; if (list != null) { result = from pro in list select new { pro.Id, pro.Com_id, pro.Posid, pro.Remark, pro.Poscompany, pro.BindingTime } } ; return(JsonConvert.SerializeObject(new { type = 100, totalCount = totalcount, msg = result })); } catch (Exception ex) { return(JsonConvert.SerializeObject(new { type = 1, msg = ex.Message })); throw; } }
public static string noteinfo(int note_id) { var totalcount = 0; try { var prodata = new B2bCompanyInfoData(); var list = prodata.noteInfo(note_id); IEnumerable result = ""; if (list != null) { result = from pro in list select new { pro.Id, pro.Sms_key, pro.Title, pro.Remark, pro.Openstate, pro.Subdate, pro.Ip } } ; return(JsonConvert.SerializeObject(new { type = 100, totalCount = totalcount, msg = result })); } catch (Exception ex) { return(JsonConvert.SerializeObject(new { type = 1, msg = ex.Message })); throw; } }
/// <summary> /// 编辑注册信息 by:xiaoliu /// </summary> /// <param name="b2b_company"></param> /// <param name="B2b_Company_Info"></param> /// <param name="manageuser"></param> /// <returns></returns> public static string InsertOrUpdateRegister(B2b_company b2b_company, B2b_company_info B2b_Company_Info, B2b_company_manageuser manageuser) { using (var sql = new SqlHelper()) { try { //判断登录账户是否存在 B2b_company_manageuser model2 = B2bCompanyManagerUserData.GetManageUserByAccount(manageuser.Accounts); if (model2 != null) { return(JsonConvert.SerializeObject(new { type = 1, msg = "账户已经被注册" })); } //判断商家注册公司名称是否存在 B2b_company model1 = B2bCompanyManagerUserData.GetB2bCompanyByCompanyName(b2b_company.Com_name); if (model1 != null) { return(JsonConvert.SerializeObject(new { type = 1, msg = "商家公司已经被注册" })); } int result = new InternalB2bCompany(sql).EditB2bCompanyInfo(b2b_company, B2b_Company_Info, manageuser);//编辑注册公司全部信息 if (result > 0) { //当注册成功 后,对绑定分销判断,如果有绑定分销直接进行绑定 if (b2b_company.Bindingagent != 0) { var bangdinginfo = AgentCompanyData.BindingAgent(result, b2b_company.Bindingagent);//商户和分销绑定 var prodata = new B2bCompanyInfoData(); var kaitong = prodata.UpComstate(result, "已暂停");//对暂停的 自动开通 //分配权限 int createmasterid = 0; string createmastername = "分销开商户自动分配微信负责人(1024)"; DateTime createdate = DateTime.Parse(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss")); //获取 string masterid = B2bCompanyManagerUserData.GetFirstIDUser(result).ToString(); string data = PermissionJsonData.EditMasterGroup(masterid, manageuser.Accounts, "1024", createmasterid, createmastername, createdate); } return(JsonConvert.SerializeObject(new { type = 100, msg = "商家注册成功", result = result })); } else { return(JsonConvert.SerializeObject(new { type = 100, msg = "商家注册出现错误" })); } } catch { //sql.Rollback(); return(JsonConvert.SerializeObject(new { type = 1, msg = "商家注册出现意外错误" })); throw; } } }
public static string ModifyBangPos(int posid, string poscompany, int com_id, int userid, string Remark, int pos_id, string md5key, int projectid = 0) { try { var result = B2bCompanyInfoData.ModifyBangPos(posid, poscompany, com_id, userid, Remark, pos_id, md5key, projectid); return(JsonConvert.SerializeObject(new { type = 100, msg = result })); } catch (Exception ex) { return(JsonConvert.SerializeObject(new { type = 1, msg = ex.Message })); } }
public static string Delnote(int id, string key) { try { var result = B2bCompanyInfoData.Delnote(id, key); return(JsonConvert.SerializeObject(new { type = 100, msg = result })); } catch (Exception ex) { return(JsonConvert.SerializeObject(new { type = 1, msg = ex.Message })); } }
public static string UpdateB2bCompanySearchset(int comid, int setsearch) { try { var result = B2bCompanyInfoData.UpdateB2bCompanySearchset(comid, setsearch); return(JsonConvert.SerializeObject(new { type = 100, msg = result })); } catch (Exception ex) { return(JsonConvert.SerializeObject(new { type = 1, msg = ex.Message })); } }
public static string Insertnote(string key, string content, string title, bool radio, int note_id) { try { var result = B2bCompanyInfoData.Insertnote(key, content, title, radio, note_id);; return(JsonConvert.SerializeObject(new { type = 100, msg = result })); } catch (Exception ex) { return(JsonConvert.SerializeObject(new { type = 1, msg = ex.Message })); } }
public static string ModifyComZizhi(int comextid, string comcode, string comsitecode, string comlicence, string scenic_intro = "", string domainname = "") { try { var result = B2bCompanyInfoData.ModifyZizhi(comextid, comcode, comsitecode, comlicence, scenic_intro, domainname); return(JsonConvert.SerializeObject(new { type = 100, msg = result })); } catch (Exception ex) { return(JsonConvert.SerializeObject(new { type = 1, msg = ex.Message })); } }
public static string ModifyBangPrint(int comextid, string Defaultprint) { try { var result = B2bCompanyInfoData.ModifyBangPrint(comextid, Defaultprint); return(JsonConvert.SerializeObject(new { type = 100, msg = result })); } catch (Exception ex) { return(JsonConvert.SerializeObject(new { type = 1, msg = ex.Message })); } }
public static string ModifyComShouquan(int comextid, string sale_Agreement, string agent_Agreement) { try { var result = B2bCompanyInfoData.ModifyComShouquan(comextid, sale_Agreement, agent_Agreement); return(JsonConvert.SerializeObject(new { type = 100, msg = result })); } catch (Exception ex) { return(JsonConvert.SerializeObject(new { type = 1, msg = ex.Message })); } }
public static string GetB2bCompanyInfoByDomainname(string Domainname) { B2b_company_info companyinfo = new B2bCompanyInfoData().GetB2bCompanyInfoByDomainname(Domainname); if (companyinfo == null) { return(JsonConvert.SerializeObject(new { type = 1, msg = companyinfo })); } else { return(JsonConvert.SerializeObject(new { type = 100, msg = companyinfo })); } }
protected void Page_Load(object sender, EventArgs e) { string u = Request.ServerVariables["HTTP_USER_AGENT"]; bool bo = detectmobilebrowser.HttpUserAgent(u); materialid = Request["materialid"].ConvertTo <int>(0); if (materialid != 0) { //if (bo == false) //{ // if (materialid == 101) // { // Response.Redirect("http://vctrip.etown.cn/"); // } // Response.Redirect("http://shop" + materialid + ".etown.cn"); //} B2b_company_info info = new B2bCompanyInfoData().GetCompanyInfo(materialid); if (info != null) { phone = info.Tel; address = info.Scenic_address; } B2b_company com = B2bCompanyData.GetCompany(materialid); if (com != null) { name = com.Com_name; } if (Request.Cookies["AccountId"] != null)//判断是否有登陆COOKI { string accountmd5 = ""; int AccountId = int.Parse(Request.Cookies["AccountId"].Value); if (Request.Cookies["AccountKey"] != null) { accountmd5 = Request.Cookies["AccountKey"].Value; } B2b_crm userinfo; var data = CrmMemberJsonData.WeixinCookieLogin(AccountId.ToString(), accountmd5, materialid, out userinfo); if (data == "OK") { if (userinfo != null) { string openid_temp = userinfo.Weixin; GetMenshiDetail(openid_temp, materialid); } } } } }
private void ShowImgBind() { var comid = UserHelper.CurrentCompany.ID; //根据公司id得到公司附加信息 B2b_company_info B2bcompanyinfo = new B2bCompanyInfoData().GetCompanyInfo(comid); if (B2bcompanyinfo != null) { FileUploadModel identityFileUpload = new FileUploadData().GetFileById(B2bcompanyinfo.Weixinimg.ConvertTo <int>(0)); if (identityFileUpload != null) { weixinqrcodeurl = identityFileUpload.Relativepath; } } }
public static string GetCompanyInfo(int comid) { try { B2b_company_info model = new B2bCompanyInfoData().GetCompanyInfo(comid); if (model != null) { return(JsonConvert.SerializeObject(new { type = 100, msg = model })); } else { return(JsonConvert.SerializeObject(new { type = 1, msg = model })); } } catch (Exception e) { return(JsonConvert.SerializeObject(new { type = 1, msg = e.Message })); } }
protected void Page_Load(object sender, EventArgs e) { comid = Request["comid"].ConvertTo <int>(0); if (comid > 0) { B2b_company company = new B2bCompanyData().GetCompanyBasicById(comid); //判断公司是否含有项目,不含有的话,添加默认项目 int count = new B2b_com_projectData().GetProjectCountByComId(company.ID); if (count == 0) { B2b_company_info companyinfo = new B2bCompanyInfoData().GetCompanyInfo(company.ID); B2b_company_saleset saleset = B2bCompanySaleSetData.GetDirectSellByComid(company.ID.ToString()); B2b_com_project model = new B2b_com_project() { Id = 0, Projectname = company.Com_name, Projectimg = saleset.Logo.ConvertTo <int>(0), Province = companyinfo.Province.ConvertTo <string>(""), City = companyinfo.City, Industryid = company.Com_type, Briefintroduce = companyinfo.Scenic_intro, Address = companyinfo.Scenic_address, Mobile = companyinfo.Tel, Coordinate = "", Serviceintroduce = companyinfo.Serviceinfo, Onlinestate = "1", Comid = company.ID, Createtime = DateTime.Now, Createuserid = 0 }; int result = new B2b_com_projectData().EditProject(model); //设置公司下产品的项目id都改为默认项目id int result2 = new B2bComProData().UpProjectId(company.ID.ToString(), result); } } }
public static string posinfo(int pos_id) { var totalcount = 0; try { var projectdata = new B2b_com_projectData(); var prodata = new B2bCompanyInfoData(); var list = prodata.PosInfo(pos_id); IEnumerable result = ""; if (list != null) { result = from pro in list select new { pro.Id, pro.Com_id, pro.Posid, pro.Remark, pro.Poscompany, pro.BindingTime, Projectid = pro.Projectid, Projectname = projectdata.GetProjectname(pro.Projectid), md5key = pro.md5key } } ; return(JsonConvert.SerializeObject(new { type = 100, totalCount = totalcount, msg = result })); } catch (Exception ex) { return(JsonConvert.SerializeObject(new { type = 1, msg = ex.Message })); throw; } }
protected void Page_Load(object sender, EventArgs e) { string u = Request.ServerVariables["HTTP_USER_AGENT"]; bool bo = detectmobilebrowser.HttpUserAgent(u); comid = Request["id"].ConvertTo <int>(0); if (comid != 0) { //if (bo == false) //{ // if (comid == 101) // { // Response.Redirect("http://vctrip.etown.cn/"); // } // Response.Redirect("http://shop" + comid + ".etown.cn"); //} B2b_company_info info = new B2bCompanyInfoData().GetCompanyInfo(comid); B2b_company com = B2bCompanyData.GetCompany(comid); if (com != null) { title = com.Com_name; } if (info != null) { article = info.Scenic_intro; merchant_intro = info.Merchant_intro; if (merchant_intro == "")//如果商家介绍为空的话,赋值景区介绍 { merchant_intro = info.Scenic_intro; } serviceinfo = info.Serviceinfo; Scenic_Takebus = info.Scenic_Takebus; Scenic_Drivingcar = info.Scenic_Drivingcar; } } }
protected void Page_Load(object sender, EventArgs e) { string u = Request.ServerVariables["HTTP_USER_AGENT"]; bool bo = detectmobilebrowser.HttpUserAgent(u); nowdate = DateTime.Now.ToString("yyyy-MM-dd"); enddate = DateTime.Now.AddDays(1).ToString("yyyy-MM-dd"); comid = Request["id"].ConvertTo <int>(0); if (comid == 0) { if (Domain_def.Domain_yanzheng(RequestUrl))//如果符合shop101.etown.cn的格式,则从多微信商户基本信息表中获取comid { comid = Int32.Parse(Domain_def.Domain_Huoqu(RequestUrl)); } else { //if (bo == false) //{ // Response.Redirect("http://vctrip.etown.cn/"); //} B2b_company_info companyinfo = B2bCompanyData.GetComId(RequestUrl); if (companyinfo != null) { comid = companyinfo.Com_id; //if (bo == false) //{ // if (comid == 101) // { // Response.Redirect("http://vctrip.etown.cn/"); // } // Response.Redirect("http://shop" + comid + ".etown.cn"); //} } } } //判断是否为平台。只有106,101 if (Domain_def.Domain_yanzheng(RequestUrl))//如果符合shop101.etown.cn的格式,则从多微信商户基本信息表中获取comid { comid_temp = Int32.Parse(Domain_def.Domain_Huoqu(RequestUrl)); } else { B2b_company_info companyinfo = B2bCompanyData.GetComId(RequestUrl); if (companyinfo != null) { comid_temp = companyinfo.Com_id; } } if (comid_temp == 101 || comid_temp == 106) { comidture = 1; } if (comid != 0) { //if (bo == false) //{ // if (comid == 101) // { // Response.Redirect("http://vctrip.etown.cn/"); // } // Response.Redirect("http://shop" + comid + ".etown.cn"); //} B2b_company companyinfo = B2bCompanyData.GetCompany(comid); B2b_company_info info = new B2bCompanyInfoData().GetCompanyInfo(comid); if (companyinfo != null) { comName = companyinfo.Com_name; if (comName.Length >= 9) { comName = comName.Substring(0, 9) + ".."; } remark = info.Scenic_intro; if (remark.Length > 42) { remark = remark.Substring(0, 42) + " <a style=\"color:#1a9ed9;font-size:13px;\" href=\"HotelIntroduction.aspx?id=" + comid + "\">(查看全部)</a>"; } address = info.Scenic_address; } B2b_company_saleset saleset = B2bCompanySaleSetData.GetDirectSellByComid(comid.ToString()); if (saleset != null) { phone = saleset.Service_Phone; if (saleset.Smalllogo != null && saleset.Smalllogo != "") { headPortraitImgSrc = FileSerivce.GetImgUrl(saleset.Smalllogo.ConvertTo <int>(0)); } } } //------------------------------新添加代码(主要目的就是获取微信号使用户处于登录状态以及判断用户转发时引发的微信号混乱问题)=========================== string weixincode = Request["code"].ConvertTo <string>(""); if (weixincode == "")//未认证微信 { openid = Request["openid"].ConvertTo <string>(""); weixinpass = Request["weixinpass"].ConvertTo <string>(""); int questtype = 1; //1=一次性密码验证 DealUserinfo1(openid, weixinpass, comid, questtype); //判断用户微信号(1,点击的转发链接进来的2,点击微信菜单进来的);使用户处于登录状态(不包括点击转发链接的) } else//已认证微信 { int questtype = 2; //1=微信授权验证 DealUserinfo1("", weixincode, comid, questtype); //获取微信号;使用户处于登录状态 } }
protected void Page_Load(object sender, EventArgs e) { if (UserHelper.ValidateLogin()) { comid = UserHelper.CurrentCompany.ID; } projectid = Request["projectid"].ConvertTo <int>(0); nowdate = DateTime.Now.ToString("yyyy-MM-dd"); monthdate = DateTime.Now.AddMonths(1).ToString("yyyy-MM-dd"); proid = Request["proid"].ConvertTo <int>(0); servertype = Request["servertype"].ConvertTo <int>(1); if (proid > 0) { int bindingid = new B2bComProData().GetbindingidbyProid(proid); if (bindingid > 0) { new B2bComProData().Getsalenum(bindingid, out limitbuytotalnum, out buynum); } else { new B2bComProData().Getsalenum(proid, out limitbuytotalnum, out buynum); } } //产品主图片 BindHeadPortrait(proid); ShowImgBind(proid); //产品子级图片(多图片)上传 BindChildImg(proid); //获取所属行业 B2b_company_manageuser user = UserHelper.CurrentUser(); B2b_company company = UserHelper.CurrentCompany; var comdata = B2bCompanyData.GetCompany(company.ID); if (comdata != null) { industryid = comdata.Com_type; } //判断公司是否含有项目,不含有的话,添加默认项目 int count = new B2b_com_projectData().GetProjectCountByComId(company.ID); if (count == 0) { B2b_company_info companyinfo = new B2bCompanyInfoData().GetCompanyInfo(company.ID); B2b_company_saleset saleset = B2bCompanySaleSetData.GetDirectSellByComid(company.ID.ToString()); B2b_com_project model = new B2b_com_project() { Id = 0, Projectname = company.Com_name, Projectimg = saleset.Logo.ConvertTo <int>(0), Province = companyinfo.Province.ConvertTo <string>(""), City = companyinfo.City, Industryid = company.Com_type, Briefintroduce = companyinfo.Scenic_intro, Address = companyinfo.Scenic_address, Mobile = companyinfo.Tel, Coordinate = "", Serviceintroduce = companyinfo.Serviceinfo, Onlinestate = "1", Comid = company.ID, Createtime = DateTime.Now, Createuserid = 0 }; int result = new B2b_com_projectData().EditProject(model); //设置公司下产品的项目id都改为默认项目id int result2 = new B2bComProData().UpProjectId(company.ID.ToString(), result); } }
public string projectserviceintroduce = ""; //项目服务介绍 protected void Page_Load(object sender, EventArgs e) { string u = Request.ServerVariables["HTTP_USER_AGENT"]; bool bo = detectmobilebrowser.HttpUserAgent(u); if (comid == 0) { string RequestUrl = Request.ServerVariables["SERVER_NAME"].ToLower(); if (Domain_def.Domain_yanzheng(RequestUrl))//如果符合shop101.etown.cn的格式,则从多微信商户基本信息表中获取comid { //先通过正则表达式获取COMid comid = Int32.Parse(Domain_def.Domain_Huoqu(RequestUrl).ToString()); if (comid == 0) { comid = new WeiXinBasicData().GetWeiXinBasicByDomain(RequestUrl).Comid; } } else { B2b_company_info companyinfo = B2bCompanyData.GetComId(RequestUrl); if (companyinfo != null) { comid = companyinfo.Com_id; } } } //根据项目id得到项目信息 projectid = Request["id"].ConvertTo <int>(0); B2b_com_project mod = new B2b_com_projectData().GetProject(projectid, comid); if (mod != null) { projectname = mod.Projectname; projectbrief = mod.Briefintroduce; projectserviceintroduce = mod.Serviceintroduce; } if (comid != 0) { //if (bo == false) //{ // if (comid == 101) // { // Response.Redirect("http://vctrip.etown.cn/"); // } // Response.Redirect("http://shop" + comid + ".etown.cn"); //} B2b_company_info info = new B2bCompanyInfoData().GetCompanyInfo(comid); B2b_company com = B2bCompanyData.GetCompany(comid); if (com != null) { title = com.Com_name; } if (info != null) { article = info.Scenic_intro; merchant_intro = info.Merchant_intro; if (merchant_intro == "")//如果商家介绍为空的话,赋值景区介绍 { merchant_intro = info.Scenic_intro; } serviceinfo = info.Serviceinfo; Scenic_Takebus = info.Scenic_Takebus; Scenic_Drivingcar = info.Scenic_Drivingcar; } } if (comid != 0) { //获取微信平台端code string weixincode = Request["code"].ConvertTo <string>(""); if (weixincode != "") { int questtype = 2;//1=微信授权验证 DealUserinfo1("", weixincode, comid, questtype); } else { string openid = Request["openid"].ConvertTo <string>(""); string weixinpass = Request["weixinpass"].ConvertTo <string>(""); int questtype = 1; //1=一次性密码验证 DealUserinfo1(openid, weixinpass, comid, questtype); //判断用户微信号(1,点击的转发链接进来的2,点击微信菜单进来的);使用户处于登录状态(不包括点击转发链接的) } } }
protected void Page_Load(object sender, EventArgs e) { Request.ValidateInput(); string u = Request.ServerVariables["HTTP_USER_AGENT"]; //bool bo = detectmobilebrowser.HttpUserAgent(u); proclass = Request["proclass"].ConvertTo <int>(0); uid = Request["uid"].ConvertTo <int>(0); //获取IP地址 uip = CommonFunc.GetRealIP(); buyuid = Request["buyuid"].ConvertTo <int>(0); tocomid = Request["tocomid"].ConvertTo <int>(0); projectid = Request["id"].ConvertTo <int>(0); pno = Request["pno"].ConvertTo <string>(""); string pno1 = EncryptionHelper.EticketPnoDES(pno, 1);//解密 var B2bEticketdata = new B2bEticketData(); var eticketinfo = B2bEticketdata.GetEticketDetail(pno1); if (eticketinfo != null) { comid = eticketinfo.Com_id; usepnonum = eticketinfo.Use_pnum; } if (comid == 0) { if (Domain_def.Domain_yanzheng(RequestUrl))//如果符合shop101.etown.cn的格式,则从多微信商户基本信息表中获取comid { comid = Int32.Parse(Domain_def.Domain_Huoqu(RequestUrl)); } else { B2b_company_info companyinfo = B2bCompanyData.GetComId(RequestUrl); if (companyinfo != null) { comid = companyinfo.Com_id; } } } //微信转发访问归属渠道 if (uid != 0)//必须记录转发用户信息才能继续统计 { //判断有转发人的渠道 var crmdata = new B2bCrmData(); var pro = crmdata.Readuser(uid, comid);//读取转发人用户信息 string zhuanfa_phone = ""; if (pro != null) { zhuanfa_phone = pro.Phone; } if (zhuanfa_phone != "") { //转发人手机存在 MemberChannelData channeldata = new MemberChannelData(); var channeinfo = channeldata.GetPhoneComIdChannelDetail(zhuanfa_phone, comid); //查询渠道 if (channeinfo != null) { //转发人渠道记录COOKI HttpCookie cookie = new HttpCookie("ZF_ChanneId"); //实例化HttpCookie类并添加值 cookie.Value = channeinfo.Id.ToString(); cookie.Expires = DateTime.Now.AddDays(120); Response.Cookies.Add(cookie); } } } //根据项目id得到项目信息 if (projectid != 0) { B2b_com_project mod = new B2b_com_projectData().GetProject(projectid, comid); if (mod != null) { projectname = mod.Projectname; projectimgurl = FileSerivce.GetImgUrl(mod.Projectimg); projectbrief = mod.Briefintroduce; } B2bComProData prodata1 = new B2bComProData(); var prohotel = prodata1.Selectpro_hotel(comid, projectid); if (prohotel == 1) { // Response.Redirect("hotel/hotelshow.aspx?projectid=" + projectid + "&id=" + comid + "&uid =" + uid + "&buyuid=" + buyuid + "&tocomid=" + tocomid + " "); } } if (comid != 0) { B2b_company companyinfo = B2bCompanyData.GetCompany(comid); B2bCompanyInfoData info = new B2bCompanyInfoData(); if (companyinfo != null) { comName = companyinfo.Com_name; if (comName.Length >= 9) { comName = comName.Substring(0, 9) + ".."; } remark = info.GetCompanyInfo(comid).Scenic_intro + " <a style=\"color:#1a9ed9\" href=\"OrderinfoTitle.aspx?id=" + comid + "\">(查看全部)</a>"; if (remark.Length > 42) { remark = remark.Substring(0, 42) + " <a style=\"color:#1a9ed9\" href=\"OrderinfoTitle.aspx?id=" + comid + "\">(查看全部)</a>"; } if (companyinfo.B2bcompanyinfo != null) { Wxfocus_url = companyinfo.B2bcompanyinfo.Wxfocus_url; Wxfocus_author = companyinfo.B2bcompanyinfo.Wxfocus_author;; } } B2b_company_saleset saleset = B2bCompanySaleSetData.GetDirectSellByComid(comid.ToString()); if (saleset != null) { if (saleset.Smalllogo != null && saleset.Smalllogo != "") { headPortraitImgSrc = FileSerivce.GetImgUrl(saleset.Smalllogo.ConvertTo <int>(0)); } } } //------------------------------新添加代码(主要目的就是获取微信号使用户处于登录状态以及判断用户转发时引发的微信号混乱问题)=========================== string weixincode = Request["code"].ConvertTo <string>(""); if (weixincode == "")//未认证微信 { openid = Request["openid"].ConvertTo <string>(""); weixinpass = Request["weixinpass"].ConvertTo <string>(""); int questtype = 1; //1=一次性密码验证 DealUserinfo1(openid, weixinpass, comid, questtype); //判断用户微信号(1,点击的转发链接进来的2,点击微信菜单进来的);使用户处于登录状态(不包括点击转发链接的) } else//已认证微信 { int questtype = 2; //1=微信授权验证 DealUserinfo1("", weixincode, comid, questtype); //获取微信号;使用户处于登录状态 } }