Fix backed call
This commit is contained in:
@@ -311,7 +311,7 @@ class WrenchApi extends BaseController
|
|||||||
|
|
||||||
if ( $call_backend == true){
|
if ( $call_backend == true){
|
||||||
$wrenchboard = new \App\Models\BackendModel();
|
$wrenchboard = new \App\Models\BackendModel();
|
||||||
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
$ret = $wrenchboard->wrenchboard_api($in, $out);
|
||||||
$out['internal_return'] = $ret;
|
$out['internal_return'] = $ret;
|
||||||
/* $this->load->model('BackendModel');
|
/* $this->load->model('BackendModel');
|
||||||
$out = array();
|
$out = array();
|
||||||
|
|||||||
@@ -21,11 +21,11 @@ class BackendModel extends Model
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public function wrenchboard_api($in, &$out = array()) {
|
public function wrenchboard_api($in, $out = array()) {
|
||||||
log_message('critical', "wrenchboard_api-STARTING" );
|
log_message('critical', "wrenchboard_api-STARTING" );
|
||||||
$out = $in;
|
//$out = $in;
|
||||||
$ret =1;
|
//$ret =1;
|
||||||
/* $this->wrenchboard_load();
|
$this->wrenchboard_load();
|
||||||
if (!is_array($in)) {
|
if (!is_array($in)) {
|
||||||
$in = array();
|
$in = array();
|
||||||
}
|
}
|
||||||
@@ -41,7 +41,7 @@ $ret =1;
|
|||||||
error_log(json_encode($in));
|
error_log(json_encode($in));
|
||||||
}
|
}
|
||||||
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
$ret = $this->wrenchboard->wrenchboard_api($in, $out);
|
||||||
*/
|
|
||||||
return $ret;
|
return $ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user