Use shared functions instead of constants
This commit is contained in:
parent
6c00b7c16f
commit
64959ebf3d
@ -34,7 +34,7 @@ function composeDeviceAttributes($flight, $ring, $build, $arch, $sku, $type) {
|
|||||||
if($sku == 119) {
|
if($sku == 119) {
|
||||||
$dvcFamily = 'Windows.Team';
|
$dvcFamily = 'Windows.Team';
|
||||||
}
|
}
|
||||||
if(in_array($sku, [7,8,12,13,79,80,120,145,146,147,148,159,160,406,407,408])) {
|
if(uupApiIsServer($sku)) {
|
||||||
$dvcFamily = 'Windows.Server';
|
$dvcFamily = 'Windows.Server';
|
||||||
$insType = 'Server';
|
$insType = 'Server';
|
||||||
$blockUpgrades = 1;
|
$blockUpgrades = 1;
|
||||||
@ -329,7 +329,7 @@ function composeFetchUpdRequest($device, $encData, $arch, $flight, $ring, $build
|
|||||||
$branch = branchFromBuild($build);
|
$branch = branchFromBuild($build);
|
||||||
|
|
||||||
$mainProduct = 'Client.OS.rs2';
|
$mainProduct = 'Client.OS.rs2';
|
||||||
if(in_array($sku, [7,8,12,13,79,80,120,145,146,147,148,159,160,406,407,408])) {
|
if(uupApiIsServer($sku)) {
|
||||||
$mainProduct = 'Server.OS';
|
$mainProduct = 'Server.OS';
|
||||||
}
|
}
|
||||||
/*/ Hololens
|
/*/ Hololens
|
||||||
|
Loading…
Reference in New Issue
Block a user