From 7477857dc964d854d525cd386a43e635ddd9ddc4 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Sat, 24 Feb 2024 20:13:04 -0500 Subject: [PATCH] return result --- www-api/app/Controllers/WrenchJobs.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/www-api/app/Controllers/WrenchJobs.php b/www-api/app/Controllers/WrenchJobs.php index cda3d150..a4b9b4fa 100644 --- a/www-api/app/Controllers/WrenchJobs.php +++ b/www-api/app/Controllers/WrenchJobs.php @@ -110,7 +110,7 @@ class WrenchJobs extends BaseController $this->doCacheStep($in, $out); //$final_out = ( new \App\Models\ResultFormatter() )->processOutJson($in, $out); - $final_out = $out; // start from all out + $final_out = $out; // start from all out $final_out["environment"] = $current_env + 0; // force convert to interger = $this->getSiteConfigurations("system.live"); $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["server_tag"] = $server_tag; @@ -150,7 +150,11 @@ class WrenchJobs extends BaseController echo("Connection failure!"); } curl_close($curl); - return $result; + $response = json_decode($result, true); + return $response; + // return $response["internal_return"]; + + // return $result; } public function wrenchboard_api($in, &$out = array(),$pathWay='') {