diff --git a/www-api/app/Controllers/WrenchWallet.php b/www-api/app/Controllers/WrenchWallet.php index 41b19a25..1ec37f65 100644 --- a/www-api/app/Controllers/WrenchWallet.php +++ b/www-api/app/Controllers/WrenchWallet.php @@ -18,7 +18,7 @@ class WrenchWallet extends BaseController public function apigate(){ log_message('critical', "0001"); header('Access-Control-Allow-Origin: *'); - log_message('critical', "WrenchBanners Path GATE 001"); + log_message('critical', "WrenchWallet Path GATE 001"); $call_backend = true; header("Access-Control-Allow-Headers: Origin, X-API-KEY, X-Requested-With, Content-Type, Accept, Access-Control-Request-Method, Access-Control-Allow-Headers, Authorization, observe, enctype, Content-Length, X-Csrf-Token"); @@ -94,10 +94,11 @@ class WrenchWallet extends BaseController } switch($endpoint) { - case 'familybanners': - $in["action"] = 'familybanners'; //WRENCHBOARD_ACCOUNT_JOBLIST; + case 'redeemoptions': + $in["action"] = 'redeemoptions'; //WRENCHBOARD_ACCOUNT_JOBLIST; break; } + $in["action"] = 'redeemoptions'; //WRENCHBOARD_ACCOUNT_JOBLIST; if ( $call_backend == true && $in["action"] !='' ){ $local_url = "http://".$micro_service_net1.":3037/redeemoptions"; @@ -108,6 +109,8 @@ class WrenchWallet extends BaseController $out = $local_out; } + + $this->doCacheStep($in, $out); $final_out = $out; // start from all out $final_out["environment"] = $current_env + 0; // force convert to interger = $this->getSiteConfigurations("system.live");