diff --git a/src/Common/AutoLoad.php b/src/Common/AutoLoad.php index cd92d1d..c07ae9b 100644 --- a/src/Common/AutoLoad.php +++ b/src/Common/AutoLoad.php @@ -16,12 +16,12 @@ $base_path = __DIR__."".DIRECTORY_SEPARATOR; $class_path = $base_path . $className . '.php'; - $class_path = str_replace("\\", "/", $class_path); +// $class_path = str_replace("\\", "/", $class_path); if ( $dir == "TokenSample/" ){ // TokenSample Path $class_path = str_replace(DIRECTORY_SEPARATOR ."Common". DIRECTORY_SEPARATOR."PallyCon".DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR."TokenSample".DIRECTORY_SEPARATOR, $class_path); }else{ - $class_path = str_replace(DIRECTORY_SEPARATOR ."Common". DIRECTORY_SEPARATOR."PallyConProxy".DIRECTORY_SEPARATOR, "".DIRECTORY_SEPARATOR, $class_path); + $class_path = str_replace(DIRECTORY_SEPARATOR ."Common". DIRECTORY_SEPARATOR."PallyConProxy".DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR, $class_path); } if(file_exists( $class_path )) { diff --git a/src/Config/Config.php b/src/Config/Config.php index 1badb6b..fb21a58 100644 --- a/src/Config/Config.php +++ b/src/Config/Config.php @@ -3,7 +3,7 @@ 'siteId'=> '', 'siteKey'=> '', 'accessKey'=> '', - 'license_url'=>'https://license.pallycon.com/ri/licenseManager.do', + 'license_url'=>'https://license-global.pallycon.com/ri/licenseManager.do', 'token_res_format' => 'original', 'proxy_response_format' => 'original', ]; diff --git a/src/Service/ProxyService.php b/src/Service/ProxyService.php index 6d4d8c2..fa3330a 100644 --- a/src/Service/ProxyService.php +++ b/src/Service/ProxyService.php @@ -158,7 +158,6 @@ private function callLicenseServer($_mode, $_url, $_requestBody, $_pallyconCusto $drmType = new DrmType(); if ( strtoupper($_drmType) == $drmType::FAIRPLAY ){ array_push($_headerData, "Content-Type: application/x-www-form-urlencoded"); - $_requestBody = "spc=". implode(array_map("chr", $_requestBody)); }else if ( strtoupper($_drmType) == $drmType::NCG ){ array_push($_headerData, "Content-Type: application/x-www-form-urlencoded"); diff --git a/src/proxy.php b/src/proxy.php index 8083d68..f452192 100644 --- a/src/proxy.php +++ b/src/proxy.php @@ -21,14 +21,8 @@ // get Parameter $_requestBody = file_get_contents("php://input"); // get raw data $_drmType = $_REQUEST["drmType"]; -$_spc = $_POST["spc"]; $_mode = @$_REQUEST["mode"]; -// FairPlay -if ( strtoupper($_drmType) == $drmType::FAIRPLAY ) { - $_requestBody = $util->getBytes($_spc); -} - // get License data $_responseData = $proxyService->getLicenseData($_mode, $_pallyconClientMeta, $_requestBody, $_drmType);