public static function httpPostJson($url, $params, $gzip) { if (!isset($params["version"])) { $params["version"] = GTConfig::getSDKVersion(); } $action = $params["action"]; $data = json_encode($params); $result = null; try { $resp = HttpManager::httpPost($url, $data, $gzip, $action); //LogUtils::debug("发送请求 post:{$data} return:{$resp}"); $result = json_decode($resp, true); return $result; } catch (\Exception $e) { throw new RequestException($params["requestId"], "httpPost:[" . $url . "] [" . $data . " ] [ " . $result . "]:", $e); } }