mirror of
https://github.com/w7corp/easywechat.git
synced 2025-02-02 02:34:22 +00:00
文档更新
parent
95d4ff62cc
commit
21469a927c
2
自定义菜单.md
2
自定义菜单.md
@ -183,7 +183,7 @@ class WechatController {
|
|||||||
if (!empty($menu['buttons'])) {
|
if (!empty($menu['buttons'])) {
|
||||||
$buttons = [];
|
$buttons = [];
|
||||||
foreach ($menu['buttons'] as $button) {
|
foreach ($menu['buttons'] as $button) {
|
||||||
$buttons[] = $new MenuItem($button['name'], $button['type'], $button['key']);
|
$buttons[] = new MenuItem($button['name'], $button['type'], $button['key']);
|
||||||
}
|
}
|
||||||
|
|
||||||
$item->buttons($buttons);
|
$item->buttons($buttons);
|
||||||
|
Loading…
Reference in New Issue
Block a user