image server
This commit is contained in:
@@ -496,6 +496,7 @@ class WrenchApi extends BaseController
|
|||||||
}
|
}
|
||||||
|
|
||||||
$current_env = $this->getSiteConfigurations("system.live");
|
$current_env = $this->getSiteConfigurations("system.live");
|
||||||
|
$primary_image_sever = $this->getSiteConfigurations("system.primary_image_sever");
|
||||||
|
|
||||||
// echo "EXYTACT INPUT DATA HERE";
|
// echo "EXYTACT INPUT DATA HERE";
|
||||||
$raw_json = file_get_contents('php://input');
|
$raw_json = file_get_contents('php://input');
|
||||||
@@ -563,7 +564,7 @@ class WrenchApi extends BaseController
|
|||||||
$this->doCacheStep($in, $out);
|
$this->doCacheStep($in, $out);
|
||||||
$final_out = ( new \App\Models\ResultFormatter() )->processOutJson($in, $out);
|
$final_out = ( new \App\Models\ResultFormatter() )->processOutJson($in, $out);
|
||||||
$final_out["environment"] = $current_env + 0; // force convert to interger = $this->getSiteConfigurations("system.live");
|
$final_out["environment"] = $current_env + 0; // force convert to interger = $this->getSiteConfigurations("system.live");
|
||||||
$final_out["session_image_server"] = ( $final_out["environment"] > 0 )? 'https://apigate.nebula.g1.wrenchboard.com/en/wrench/api/v1/getmedia/' : "https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1/getmedia/";
|
$final_out["session_image_server"] = $primary_image_sever; // ( $final_out["environment"] > 0 )? 'https://apigate.nebula.g1.wrenchboard.com/en/wrench/api/v1/getmedia/' : "https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1/getmedia/";
|
||||||
//$final_out["session_image_server"] = "https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1/getmedia/";
|
//$final_out["session_image_server"] = "https://apigate.lotus.g1.wrenchboard.com/en/wrench/api/v1/getmedia/";
|
||||||
$final_out["language"] = "en";
|
$final_out["language"] = "en";
|
||||||
$final_out["ip_loc"] = $ip_loc;
|
$final_out["ip_loc"] = $ip_loc;
|
||||||
|
|||||||
Reference in New Issue
Block a user