Config file use
This commit is contained in:
@@ -473,6 +473,7 @@ class WrenchApi extends BaseController
|
||||
$raw_json = file_get_contents('php://input');
|
||||
$raw_array = json_decode($raw_json, true);
|
||||
$raw_array["call_backend"] = $call_backend;
|
||||
$out["system_primary_uploads"] = $this->getSiteConfigurations("system.primary_uploads");
|
||||
$out = ( new \App\Models\UploadManager() )->reciveUpload($raw_array, $local_out);
|
||||
$call_backend = $out["call_backend"];
|
||||
$raw_array["message"] = $out["message"];
|
||||
@@ -515,6 +516,11 @@ class WrenchApi extends BaseController
|
||||
|
||||
}
|
||||
|
||||
private function getSiteConfigurations($config_item){
|
||||
$wrenchboard = new \App\Models\BackendModel();
|
||||
return $wrenchboard->cfgReadChar($config_item);
|
||||
}
|
||||
|
||||
private function dummyData($raw_array)
|
||||
{
|
||||
return [
|
||||
|
||||
Reference in New Issue
Block a user