clean code
This commit is contained in:
@@ -4,17 +4,11 @@ namespace App\Controllers;
|
||||
|
||||
class WrenchGeneralData extends BaseController
|
||||
{
|
||||
private $current_env=0;
|
||||
private $primary_image_sever='';
|
||||
private $server_tag='';
|
||||
private $wrenchboard;
|
||||
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$this->wrenchboard = new \App\Models\BackendModel();
|
||||
$this->current_env = $this->getSiteConfigurations("system.live");
|
||||
$this->primary_image_sever = $this->getSiteConfigurations("system.primary_image_sever");
|
||||
$this->server_tag = $this->getSiteConfigurations("system.server_tag");
|
||||
|
||||
}
|
||||
|
||||
public function signUpCountry(){
|
||||
@@ -27,19 +21,11 @@ class WrenchGeneralData extends BaseController
|
||||
$out['internal_return'] = $ret;
|
||||
$this->saveCache($endpoint,$out,$timeLine=15000);
|
||||
}
|
||||
|
||||
// $this->doCacheStep($in, $out);
|
||||
$final_out = ( new \App\Models\ResultFormatter() )->processOutJson($in, $out);
|
||||
$final_out["environment"] = $this->current_env + 0;
|
||||
$final_out["session_image_server"] = $this->primary_image_sever;
|
||||
$final_out["server_tag"] = $this->server_tag;
|
||||
$final_out["language"] = "en";
|
||||
$final_out["ip_loc"] = $this->getIpData();
|
||||
$final_out["current_version"] = 20240306;
|
||||
$final_out["family_types"] = $this->familyTypes();
|
||||
$final_out["history_types"] = $this->historyTypes();
|
||||
//return json_encode( ( new \App\Models\ResultFormatter() )->processOutJson($in, $out));
|
||||
return json_encode( $final_out );
|
||||
|
||||
return $this->summaryReturnData($in,$out); //json_encode( $final_out );
|
||||
}
|
||||
|
||||
public function usersPreferences(){
|
||||
//preferences
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user