MxWeiXinPF.Web/admin/weixin/wxMenu.aspx.cs
(开头部分) 12KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
/**************************************
*
* author:李朴
* company:上海沐雪网络科技有限公司
* website:http://uweixin.cn
* createDate:2013-11-1
* update:2014-12-30
* remark:微信导航菜单的设置
*
***********************************/
using System;
using System.Collections.Generic;
using System.Data;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using MxWeiXinPF.Common;
using MxWeiXinPF.BLL;
using MxWeiXinPF.WeiXinComm;
using Senparc.Weixin.MP.Entities;
using Senparc.Weixin.MP.CommonAPIs;
using Senparc.Weixin.MP.Entities.Menu;
namespace MxWeiXinPF.Web.admin.weixin
{
public partial class wxMenu : Web.UI.ManagePage
{
MenuMgr mMrg = new MenuMgr();
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
GetMenu();
}
}
#region 获取最新的菜单=================================
private void GetMenu()
{
try
{
Model.wx_userweixin weixin = GetWeiXinCode();
string error = "";
string accessToken = WeiXinCRMComm.getAccessToken(weixin.id, out error);
if (error != "")
{
JscriptMsg(error, "", "Error");
return;
}
GetMenuResult result = mMrg.GetMenu(accessToken);
if (result == null)
后面还有 278 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
