public function download_media($media_id) { $url = $this->get_media($media_id); $res = HttpCurl::get($url); // 异常处理: 获取时网络错误 if ($res === false) { return Error::code('ERR_GET'); } return array(null, $res); }