删除菜单

  

private function menuDelete1($Wechat,$data)
{
$this->logger("已经到达2");
$openid=$data['FromUserName'];
$appid="wx4dae5d61b7f9935c";
$appSecret="24a91315a1a62a9efe323accf5c93839";
$token=session('token') ;

if($token){

$WechatAuth=new WechatAuth($appid,$appSecret,$token);

}else{
$WechatAuth=new WechatAuth($appid,$appSecret);

$accsseToken=$WechatAuth->getAccessToken();
$token=$accsseToken['access_token'];
session('token',$token);
}
$WechatAuth->menuDelete();
}

你可能感兴趣的:(删除菜单)