forked from uup-dump/api
Add Appx presence check
This commit is contained in:
parent
42b1091c0b
commit
faa3b7fa45
@ -40,6 +40,7 @@ function uupListLangsInternal($updateId) {
|
||||
return [
|
||||
'langList' => $langList,
|
||||
'langFancyNames' => $langListFancy,
|
||||
'appxPresent' => isset($genPack['neutral']['APP']),
|
||||
];
|
||||
}
|
||||
|
||||
@ -51,11 +52,10 @@ function uupListLangs($updateId = 0, $returnInfo = true) {
|
||||
|
||||
$langList = uupListLangsInternal($updateId);
|
||||
|
||||
$response = [
|
||||
'apiVersion' => uupApiVersion(),
|
||||
'langList' => $langList['langList'],
|
||||
'langFancyNames' => $langList['langFancyNames'],
|
||||
];
|
||||
$response = array_merge(
|
||||
['apiVersion' => uupApiVersion()],
|
||||
$langList
|
||||
);
|
||||
|
||||
if($returnInfo) $response['updateInfo'] = $info;
|
||||
|
||||
|
@ -16,7 +16,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
function uupApiVersion() {
|
||||
return '1.45.0';
|
||||
return '1.46.0';
|
||||
}
|
||||
|
||||
require_once dirname(__FILE__).'/auths.php';
|
||||
|
Loading…
Reference in New Issue
Block a user