Save cache only after successful retrieval, better token generation

This commit is contained in:
whatever127
2019-08-20 18:09:40 +02:00
parent c5c6c47f15
commit 78642059cc
19 changed files with 19 additions and 17 deletions

View File

@ -1,6 +1,6 @@
<?php
/*
Copyright 2018 UUP dump API authors
Copyright 2019 whatever127
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
@ -16,7 +16,11 @@ limitations under the License.
*/
function uupDevice() {
$tValue = base64_encode(hex2bin(randStr(60)));
$tValueHeader = '13003002c377040014d5bcac7a66de0d50beddf9bba16c87edb9e019898000';
$tValueRandom = randStr(1054);
$tValueEnd = 'b401';
$tValue = base64_encode(hex2bin($tValueHeader.$tValueRandom.$tValueEnd));
$data = 't='.$tValue.'&p=';
return base64_encode(chunk_split($data, 1, "\0"));
}

View File

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

File diff suppressed because one or more lines are too long