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);
|
|
}
|
|
}
|
|
}
|