【修复】修复公众号管理创建二级菜单失败的问题。

This commit is contained in:
jianweie
2023-05-05 15:58:40 +08:00
parent 91172f3ee2
commit 58c3bcc0f3
5 changed files with 174 additions and 4 deletions

View File

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

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