You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

34 lines
754 B

using Bwp.MainSystem;
using BWP.B3WeChat.Utils;
using Forks.EnterpriseServices.BusinessInterfaces;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using TSingSoft.WebPluginFramework;
namespace BWP.Web.Pages
{
class WeChatLogin:IHttpHandler
{
public bool IsReusable
{
get { return true; }
}
public void ProcessRequest(HttpContext context)
{
var code = context.Request.QueryString["code"];
if (string.IsNullOrEmpty(code))
{
context.Response.Write("require login code");
context.Response.End();
return;
}
var url = context.Request.QueryString["url"];
Global.WeChatLoginAndRedirect(code, url);
}
}
}