<?php
//获取用户openid
//公众号配置跳转至该页面
//https://mp.weixin.qq.com/advanced/selfmenu?action=index&t=advanced/menu-setting&token=1089922883&lang=zh_CN
$appid="";
$appsecret="";
// $client_credential=client_credential;
$url="https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credential&appid=$appid&secret=$appsecret";
header( "Location: $url" );