startcredit
This commit is contained in:
@@ -86,7 +86,22 @@ class WrenchTransactions extends BaseController
|
||||
break;
|
||||
}
|
||||
|
||||
$response = [];
|
||||
$in["loc"] = $_SERVER["REMOTE_ADDR"];
|
||||
log_message('critical', "wrenchboard_api-CALL PREPARE DATA".serialize($in) );
|
||||
|
||||
|
||||
if ( $call_backend == true && $in["action"] !='' ){
|
||||
$wrenchboard = new \App\Models\BackendModel();
|
||||
$ret = $wrenchboard->wrenchboard_api($in, $out);
|
||||
$out['internal_return'] = $ret;
|
||||
}
|
||||
else
|
||||
{
|
||||
$out = $local_out;
|
||||
}
|
||||
|
||||
$this->doCacheStep($in, $out);
|
||||
return json_encode( ( new \App\Models\ResultFormatter() )->processOutJson($in, $out));
|
||||
|
||||
return $this->response->setJson($response);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user