/** * 创建自定义菜单 */ public function createMenu() { $menuJson = $this->generateMenu(); $accessToken = AccessTokenService::getAccessToken(); $url = Config::get('constants.CreateMenuUrl'); $url = $url . "?access_token=" . $accessToken; $res = HttpClientService::curlPost($url, $menuJson, true); Log::info($res); return $res; }