From 43cd6d3792c3dace76353f0097e491846ab1ae83 Mon Sep 17 00:00:00 2001 From: "DESKTOP-GBA0BK8\\Admin" Date: Sun, 16 Apr 2023 07:17:00 -0400 Subject: [PATCH] back end call --- www-api/app/Controllers/WrenchApi.php | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/www-api/app/Controllers/WrenchApi.php b/www-api/app/Controllers/WrenchApi.php index 01b8f15e..8d432c7e 100644 --- a/www-api/app/Controllers/WrenchApi.php +++ b/www-api/app/Controllers/WrenchApi.php @@ -304,14 +304,11 @@ class WrenchApi extends BaseController { $out = $local_out; } - - + //ResultFormatter - $res000 = json_encode( ( new \App\Models\ResultFormatter() )->processOutJson($in, $out)); - - $res1 = $this->dummyData($raw_array); - return $this->response->setJson($res1); - + return json_encode( ( new \App\Models\ResultFormatter() )->processOutJson($in, $out)); + // $res1 = $this->dummyData($raw_array); + // return $this->response->setJson($res1); } private function dummyData($raw_array)