From f6b9b6f1dc51eda3d8963bd8f5af2461dc585540 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sun, 5 Nov 2023 19:40:34 -0500 Subject: [PATCH] curr env --- www-api/app/Controllers/WrenchApi.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/www-api/app/Controllers/WrenchApi.php b/www-api/app/Controllers/WrenchApi.php index 4f6f2c99..eb71f1a8 100644 --- a/www-api/app/Controllers/WrenchApi.php +++ b/www-api/app/Controllers/WrenchApi.php @@ -496,7 +496,7 @@ class WrenchApi extends BaseController } $current_env = $this->getSiteConfigurations("system.live"); - + // echo "EXYTACT INPUT DATA HERE"; $raw_json = file_get_contents('php://input'); $raw_array = json_decode($raw_json, true); @@ -565,7 +565,7 @@ class WrenchApi extends BaseController $this->doCacheStep($in, $out); $final_out = ( new \App\Models\ResultFormatter() )->processOutJson($in, $out); $final_out["environment"] = $current_env; // = $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"] = ((int) $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["language"] = "en"; $final_out["ip_loc"] = $ip_loc;