fix dashdrecent
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user