fix 微信菜单长度
This commit is contained in:
@@ -337,11 +337,11 @@ class WeChat(metaclass=Singleton):
|
|||||||
})
|
})
|
||||||
buttons.append({
|
buttons.append({
|
||||||
"name": category,
|
"name": category,
|
||||||
"sub_button": sub_buttons
|
"sub_button": sub_buttons[:5]
|
||||||
})
|
})
|
||||||
|
|
||||||
if buttons:
|
if buttons:
|
||||||
# 发送请求
|
# 发送请求
|
||||||
self.__post_request(req_url, {
|
self.__post_request(req_url, {
|
||||||
"button": buttons
|
"button": buttons[:3]
|
||||||
})
|
})
|
||||||
|
Reference in New Issue
Block a user