|
|
@@ -901,11 +901,11 @@ namespace Learun.Application.Web.Controllers |
|
|
|
string secret = weichatdevelop.secret; |
|
|
|
ViewBag.login = Request.QueryString["login"]; |
|
|
|
ViewBag.CODE = Request.QueryString["CODE"]; |
|
|
|
//页面来源(source=DragNoLogin为网上办事大厅拖拽版) |
|
|
|
//页面来源(source=NoLogin为网上办事大厅拖拽版) |
|
|
|
ViewBag.source = Request.QueryString["source"]; |
|
|
|
if (!string.IsNullOrEmpty(ViewBag.login)) |
|
|
|
{ |
|
|
|
if (ViewBag.source == "DragNoLogin") |
|
|
|
if (ViewBag.source == "NoLogin") |
|
|
|
{ |
|
|
|
var aa = HttpUtility.UrlEncode("/Login/LoginForWeixin?source=" + ViewBag.source); |
|
|
|
return Redirect("https://open.weixin.qq.com/connect/qrconnect?appid=" + appid + "&redirect_uri=" + redirect_url + aa + "&response_type=code&scope=snsapi_login&state=one#wechat_redirect"); |
|
|
@@ -931,7 +931,7 @@ namespace Learun.Application.Web.Controllers |
|
|
|
public ActionResult DoWeixinLogin() |
|
|
|
{ |
|
|
|
string openId = Request["openId"]; |
|
|
|
//页面来源(source=DragNoLogin为网上办事大厅拖拽版) |
|
|
|
//页面来源(source=NoLogin为网上办事大厅拖拽版) |
|
|
|
string source = Request["source"]; |
|
|
|
var userEntity = userBll.GetEntityByWeixinOpenIdPC(openId); |
|
|
|
if (userEntity != null) |
|
|
@@ -963,7 +963,7 @@ namespace Learun.Application.Web.Controllers |
|
|
|
{ |
|
|
|
string QQOpenId = Request["QQOpenId"]; |
|
|
|
string WeixinOpenId = Request["WeixinOpenId"]; |
|
|
|
//页面来源(source=DragNoLogin为网上办事大厅拖拽版) |
|
|
|
//页面来源(source=NoLogin为网上办事大厅拖拽版) |
|
|
|
string source = Request["source"]; |
|
|
|
ViewBag.WeixinOpenId = WeixinOpenId; |
|
|
|
ViewBag.QQOpenId = QQOpenId; |
|
|
@@ -984,7 +984,7 @@ namespace Learun.Application.Web.Controllers |
|
|
|
ViewBag.ACIp = ConfigurationManager.AppSettings["ACIp"] ?? ""; |
|
|
|
ViewBag.ACIp2 = ConfigurationManager.AppSettings["ACIp2"] ?? ""; |
|
|
|
//判断页面来源 |
|
|
|
if (source == "DragNoLogin") |
|
|
|
if (source == "NoLogin") |
|
|
|
{ |
|
|
|
return Redirect("/SSOSystem/DragNoWxLogin?QQOpenId=" + QQOpenId + "&WeixinOpenId=" + WeixinOpenId + ""); |
|
|
|
} |
|
|
|