forked from uup-dump/api
Fix something
This commit is contained in:
parent
1667046e84
commit
aa53951c2f
13
get.php
13
get.php
@ -189,6 +189,7 @@ function uupGetFiles(
|
|||||||
$newFiles = array();
|
$newFiles = array();
|
||||||
foreach($filesList as $val) {
|
foreach($filesList as $val) {
|
||||||
$name = uupCleanName($val);
|
$name = uupCleanName($val);
|
||||||
|
$filesListKeys[] = $name;
|
||||||
|
|
||||||
if(isset($files[$name])) {
|
if(isset($files[$name])) {
|
||||||
$newFiles[$name] = $files[$name];
|
$newFiles[$name] = $files[$name];
|
||||||
@ -197,6 +198,17 @@ function uupGetFiles(
|
|||||||
|
|
||||||
$files = $newFiles;
|
$files = $newFiles;
|
||||||
$filesKeys = array_keys($files);
|
$filesKeys = array_keys($files);
|
||||||
|
|
||||||
|
$filesListKeys = array_unique($filesListKeys);
|
||||||
|
sort($filesListKeys);
|
||||||
|
$compare = array_diff($filesListKeys, $filesKeys);
|
||||||
|
|
||||||
|
if(count($compare)) {
|
||||||
|
foreach($compare as $val) {
|
||||||
|
consoleLogger("Missing file: $val");
|
||||||
|
}
|
||||||
|
return array('error' => 'MISSING_FILES');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(empty($filesKeys)) {
|
if(empty($filesKeys)) {
|
||||||
@ -373,6 +385,7 @@ function uupCleanName($name) {
|
|||||||
$replace = array(
|
$replace = array(
|
||||||
'cabs_' => null,
|
'cabs_' => null,
|
||||||
'metadataesd_' => null,
|
'metadataesd_' => null,
|
||||||
|
'prss_signed_appx_' => null,
|
||||||
'~31bf3856ad364e35' => null,
|
'~31bf3856ad364e35' => null,
|
||||||
'~~.' => '.',
|
'~~.' => '.',
|
||||||
'~.' => '.',
|
'~.' => '.',
|
||||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function uupApiVersion() {
|
function uupApiVersion() {
|
||||||
return '1.20.2';
|
return '1.20.3';
|
||||||
}
|
}
|
||||||
|
|
||||||
require_once dirname(__FILE__).'/auths.php';
|
require_once dirname(__FILE__).'/auths.php';
|
||||||
|
Loading…
Reference in New Issue
Block a user