$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);
微信公众号创建菜单目录数组结构
猜你喜欢
转载自blog.csdn.net/hd2killers/article/details/81217285
今日推荐
周排行