fix dashdrecent

This commit is contained in:
CHIEFSOFT\ameye
2023-07-19 08:24:27 -04:00
parent b251f1b5ba
commit 092a60e8e9
+5 -4
View File
@@ -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);