using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace LYFZ.WeixinServers { public partial class Authorize : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { // 企业id; string strEntId = ""; // 公众号或小程序appid; string strAppId = ""; // app类型:公众号或小程序; string strAppType = ""; // app的微信号; string strAppWxId = ""; if (VerifyParam(out strEntId, out strAppId, out strAppType, out strAppWxId)) { // 根据企业id获取企业信息; LoginModel.enterprise model = GlobalCache.GetEnterpriseModel(strEntId); if (model != null) { string authorizeParameter = LYFZ.WinAPI.SDKSecurity.Encode(strAppType + "&" + strAppId + "&" + strEntId); string url = "https://mp.weixin.qq.com/cgi-bin/componentloginpage?component_appid=" + LYFZ.WXLibrary.OpenPlatformConfig.OpenAppID + "&pre_auth_code=" + LYFZ.WXLibrary.OpenPlatformConfig.Pre_auth_code + "&redirect_uri=" + LYFZ.WXLibrary.OpenPlatformConfig.Redirect_uri + "?auth_parameters=" + authorizeParameter; this.divInfo.InnerHtml = "
"
+ " 消息管理权限: 帮助公众号接收用户消息,进行人工客服回复或自动回复"
+ "
自定义菜单权限:帮助公众号使用自定义菜单"
+ "
网页服务权限:帮助公众号实现第三方网页服务和活动"
+ "
群发与通知权限:帮助公众号进行群发和模板消息业务通知"
+ "
用户管理权限:帮助公众号获取用户信息,进行用户管理"
+ "
"
+ " 消息管理权限: 帮助公众号接收用户消息,进行人工客服回复或自动回复"
+ "
自定义菜单权限:帮助公众号使用自定义菜单"
+ "
网页服务权限:帮助公众号实现第三方网页服务和活动"
+ "
群发与通知权限:帮助公众号进行群发和模板消息业务通知"
+ "
用户管理权限:帮助公众号获取用户信息,进行用户管理"
+ "