示例#1
0
 public function menudel()
 {
     $wx_info = C('wx_info');
     $Auth = new WechatAuth($wx_info['AppID'], $wx_info['Secret'], S('access_token'));
     $rs = $Auth->menuDelete();
     print_r($rs);
 }
示例#2
0
 public function menudel()
 {
     vendor('Weixinpay.WxPayJsApiPay');
     $appid = \WxPayConfig::APPID;
     $appsecret = \WxPayConfig::APPSECRET;
     $wxmsg = new WxUserInfo();
     $access_token = $wxmsg->accessToken();
     $Auth = new WechatAuth($appid, $appsecret, $access_token);
     $rs = $Auth->menuDelete();
     print_r($rs);
 }