Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

关于要有两个子菜单的异常 #44

Closed
hilite2000 opened this issue Aug 22, 2014 · 1 comment
Closed

关于要有两个子菜单的异常 #44

hilite2000 opened this issue Aug 22, 2014 · 1 comment

Comments

@hilite2000
Copy link
Contributor

https://github.com/JeffreySu/WeiXinMPSDK/blob/master/Senparc.Weixin.MP/Senparc.Weixin.MP/CommonAPIs/CommonApi.Menu.cs#L221
1、在微信公众平台设置的两个子菜单中,一个是直接跳转url,另一个设置的显示图文信息。在获取菜单时总是报错,发现显示图文信息的菜单项是空内容,被代码认为跟菜单下只有一个菜单项,导致报错。
2、也许某些情况下的确只有一个子菜单,这个应该不影响程序的运行。

else if (availableSubButton < 2)
{
throw new WeixinMenuException("子菜单至少需要填写2个!");
}

@JeffreySu
Copy link
Owner

是的,最早的时候这个数量限制的,很久之前已经取消了,已经在v7.0.20修改,请看一下现在是否还有问题?谢谢!

JeffreySu pushed a commit that referenced this issue May 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants