Fix messed up architecture being reported to the server

This commit is contained in:
whatever127 2019-07-30 19:44:14 +02:00
parent 9c6f0352e8
commit c5c6c47f15
2 changed files with 6 additions and 2 deletions

View File

@ -16,7 +16,7 @@ limitations under the License.
*/ */
function uupApiVersion() { function uupApiVersion() {
return '1.25.0'; return '1.25.1';
} }
require_once dirname(__FILE__).'/auths.php'; require_once dirname(__FILE__).'/auths.php';

View File

@ -22,6 +22,10 @@ function composeDeviceAttributes($flight, $ring, $build, $arch, $sku) {
$flightEnabled = 1; $flightEnabled = 1;
$isRetail = 0; $isRetail = 0;
if(is_array($arch)) {
$arch = $arch[0];
}
if($ring == 'RETAIL') { if($ring == 'RETAIL') {
$flightEnabled = 0; $flightEnabled = 0;
$isRetail = 1; $isRetail = 1;
@ -58,7 +62,7 @@ function composeDeviceAttributes($flight, $ring, $build, $arch, $sku) {
'OEMModel=Largehard Device Model 42069', 'OEMModel=Largehard Device Model 42069',
'OEMModelBaseBoard=Largehard Base Board', 'OEMModelBaseBoard=Largehard Base Board',
'OEMName_Uncleaned=Largehard Corporation', 'OEMName_Uncleaned=Largehard Corporation',
'OSArchitecture='.$arch[0], 'OSArchitecture='.$arch,
'OSSkuId='.$sku, 'OSSkuId='.$sku,
'OSUILocale=en-US', 'OSUILocale=en-US',
'OSVersion='.$build, 'OSVersion='.$build,