//获取token
//name 这些自定义 url 自定义、
//https://open.weixin.qq.com/connect/oauth2/authorize?appid=$appid&redirect_uri=自己定义的地址?&response_type=code&scope=snsapi_base&state=123#wechat_redirect //用于网页授权 获取 code
/**主菜单必须要有 如果只有一个主菜单
你需要这样写
$json_template = array(
"button" => [
array( "name" => urlencode("会员"), "sub_button" => $arr_m1 ),
array( "name" => "" ),
array( "name" => "" ),
]
);
为空就好 不行的话 就随便写个什么试试*/
//子菜单 最多5个
$arr_m1 = array();
$arr_m1[0]=array(
"type" => "view",
"name" => urlencode("领取会员卡"),
"url" => urlencode("https://mp.weixin.qq.com/bizmall/activatemembercard?action=preshow&encrypt_card_id=$encrypt_card_id&biz=$biz&version=26060637&lang=zh_CN")
);
$arr_m1[1]=array(
PHP:微信公众号--自定义公众号菜单
最新推荐文章于 2022-02-10 16:40:04 发布