From 092a60e8e9696e7d588e2d14592eccf744e99cc0 Mon Sep 17 00:00:00 2001 From: "CHIEFSOFT\\ameye" Date: Wed, 19 Jul 2023 08:24:27 -0400 Subject: [PATCH] fix dashdrecent --- www-api/app/Controllers/WrenchDashRecent.php | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/www-api/app/Controllers/WrenchDashRecent.php b/www-api/app/Controllers/WrenchDashRecent.php index a2584ed4..b2e93a4d 100644 --- a/www-api/app/Controllers/WrenchDashRecent.php +++ b/www-api/app/Controllers/WrenchDashRecent.php @@ -84,7 +84,7 @@ class WrenchDashRecent extends BaseController log_message('critical', "WrenchDashRecent-Gate 006 ->".$endpoint); $call_backend = false; $this->dashRecent($in,$out); - $in["action"] = WRENCHBOARD_USER_STARTCREDIT; + // $in["action"] = WRENCHBOARD_USER_STARTCREDIT; break; case 'confirmcredit': @@ -106,17 +106,18 @@ class WrenchDashRecent extends BaseController } return json_encode( ( new \App\Models\ResultFormatter() )->processRecentOutJson($in, $out)); - return $this->response->setJson($response); + // return $this->response->setJson($response); } private function dashRecent($in,$out){ - + // $ret = 0; $in["action"] = WRENCHBOARD_FAMILY_SGGESTWAITING; $ret = $this->callBackEndData($in,$out); + return $ret; } - private function callBackEndData($in,$out){ + private function callBackEndData($in, $out){ log_message('critical', "WrenchDashRecent-Gate 007 ->"); $wrenchboard = new \App\Models\BackendModel(); $ret = $wrenchboard->wrenchboard_api($in, $out);