mirror of
http://git.coreshop.cn/jianweie/coreshoppro.git
synced 2025-12-06 17:43:26 +08:00
【修复】修复公众号管理创建二级菜单失败的问题。
This commit is contained in:
@@ -7,8 +7,14 @@ using SKIT.FlurlHttpClient.Wechat.Api.Models;
|
||||
|
||||
namespace CoreCms.Net.Model.WeChatEntites
|
||||
{
|
||||
/// <summary>
|
||||
/// 公众号菜单按钮提交参数类
|
||||
/// </summary>
|
||||
public class MenuFull_ButtonGroupForSkit
|
||||
{
|
||||
public List<CgibinMenuCreateRequest.Types.Button> button { get; set; }
|
||||
/// <summary>
|
||||
/// 按钮列表
|
||||
/// </summary>
|
||||
public List<MenuFull_RootButton> button { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
54
CoreCms.Net.Model/WeChatEntites/MenuFull_RootButton.cs
Normal file
54
CoreCms.Net.Model/WeChatEntites/MenuFull_RootButton.cs
Normal file
@@ -0,0 +1,54 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CoreCms.Net.Model.WeChatEntites
|
||||
{
|
||||
/// <summary>
|
||||
/// 按钮具体类型
|
||||
/// </summary>
|
||||
public class MenuFull_RootButton
|
||||
{
|
||||
/// <summary>
|
||||
/// 菜单的响应动作类型,view表示网页类型,click表示点击类型,miniprogram表示小程序类型
|
||||
/// </summary>
|
||||
public string type { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 菜单KEY值,用于消息接口推送,不超过128字节
|
||||
/// </summary>
|
||||
public string key { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 菜单标题,不超过16个字节,子菜单不超过60个字节
|
||||
/// </summary>
|
||||
public string name { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 网页 链接,用户点击菜单可打开链接,不超过1024字节。 type为miniprogram时,不支持小程序的老版本客户端将打开本url。
|
||||
/// </summary>
|
||||
public string url { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 小程序的appid(仅认证公众号可配置)
|
||||
/// </summary>
|
||||
public string appid { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 小程序的页面路径
|
||||
/// </summary>
|
||||
public string pagepath { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 调用新增永久素材接口返回的合法media_id
|
||||
/// </summary>
|
||||
public string media_id { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// 二级菜单数组,个数应为1~5个
|
||||
/// </summary>
|
||||
public List<MenuFull_RootButton> sub_button { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user