clean up
This commit is contained in:
@@ -100,8 +100,6 @@ class WrenchJobs extends BaseController
|
||||
if ( $call_backend == true && $in["action"] !='' ){
|
||||
$local_url = "http://10.10.10.120:3033/marketjobs";
|
||||
$out = $this->APIcall('GET', $local_url, $in);
|
||||
// $ret = $this->APIcall($in, $out);
|
||||
// $out['internal_return'] = $ret;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -109,7 +107,6 @@ 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["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/";
|
||||
@@ -150,11 +147,7 @@ class WrenchJobs extends BaseController
|
||||
echo("Connection failure!");
|
||||
}
|
||||
curl_close($curl);
|
||||
$response = json_decode($result, true);
|
||||
return $response;
|
||||
// return $response["internal_return"];
|
||||
|
||||
// return $result;
|
||||
return json_decode($result, true);
|
||||
}
|
||||
|
||||
public function wrenchboard_api($in, &$out = array(),$pathWay='') {
|
||||
|
||||
Reference in New Issue
Block a user