当前位置:   article > 正文

微信公众号创建菜单目录数组结构_微信公众号目录结构

微信公众号目录结构
$data = [
            'button' => [
                0 => [
                    'name' => '商城首页',
                    'url'  => 'http://.html',
                    'type' => 'view',
                ],
                1 => [
                    'name'       => 'App下载',
                    'sub_button' => [
                        0 => [
                            'name' => 'App下载',
                            'url'  => 'http://m',
                            'type' => 'view',
                        ],
                        1 => [
                            'name' => '苹果授信',
                            'type' => 'click',
                            'key'  => 'app_authorization',
                        ],
                        2 => [
                            'name' => '领取优惠券',
                            'type' => 'click',
                            'key'  => 'receive_coupons',
                        ],
                        3 => [
                            'name' => '推广二维码',
                            'type' => 'click',
                            'key'  => 'corcode',
                        ],
                    ],
                ],
                2 => [
                    'name'       => '联系我们',
                    'sub_button' => [
                        0 => [
                            'name' => '运费核算',
                            'type' => 'click',
                            'key'  => 'freight_accounting',
                        ],
                        1 => [
                            'name' => '售后服务',
                            'type' => 'click',
                            'key'  => 'sales_service',
                        ],
                        2 => [
                            'name' => '平台介绍',
                            'type' => 'click',
                            'key'  => 'about',
                        ],
                        3 => [
                            'name' => '添加客服',
                            'type' => 'click',
                            'key'  => 'add_customer',
                        ],
                        4 => [
                            'name' => '联系我们',
                            'type' => 'click',
                            'key'  => 'contact_us',
                        ],
                    ],
                ],
            ],
        ];
        $res = $weObj->createMenu($data);
  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Monodyee/article/detail/216612?site
推荐阅读
相关标签
  

闽ICP备14008679号