Add some helper functions
This commit is contained in:
parent
547aa1512a
commit
067f7f2937
@ -16,7 +16,7 @@ limitations under the License.
|
||||
*/
|
||||
|
||||
function uupApiVersion() {
|
||||
return '1.34.0';
|
||||
return '1.35.0-dev';
|
||||
}
|
||||
|
||||
require_once dirname(__FILE__).'/auths.php';
|
||||
|
@ -134,3 +134,19 @@ function uupApiCheckUpdateId($updateId) {
|
||||
$updateId
|
||||
);
|
||||
}
|
||||
|
||||
function uupApiIsServer($skuId) {
|
||||
$serverSkus = [
|
||||
7, 8, 12, 13, 79, 80, 120, 145, 146,
|
||||
147, 148, 159, 160, 406, 407, 408
|
||||
];
|
||||
|
||||
return in_array($skuId, $serverSkus);
|
||||
}
|
||||
|
||||
function uupApiBuildMajor($build) {
|
||||
if(!str_contains($build, '.')) {
|
||||
return intval($build);
|
||||
}
|
||||
return intval(explode('.', $build)[0]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user