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); }
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); }