fix 微信菜单长度

This commit is contained in:
jxxghp
2023-09-05 11:23:21 +08:00
parent 2826b9411d
commit 551f32491d

View File

@@ -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]
}) })