Formatter Model

This commit is contained in:
DESKTOP-GBA0BK8\Admin
2023-04-15 22:30:52 -04:00
parent d38cd270d7
commit 0b450a1440
+15
View File
@@ -280,6 +280,21 @@ class WrenchApi extends BaseController
}
//-- move to another module end
$in["pid"] = 100;
$out = array();
if ( $call_backend == true){
// $ret = $wrenchboard->wrenchboard_api($in, $out);
$out['internal_return'] = 0; // $ret; // this is reserved array parameter - to be captured and received before you use the out array()
}
else
{
$out = $local_out;
}
//ResultFormatter
$res000 = json_encode( ( new \App\Models\ResultFormatter() )->processOutJson($in, $out));
$res1 = $this->dummyData($raw_array);
return $this->response->setJson($res1);