This commit is contained in:
苏尹岚
2021-04-13 15:52:33 +08:00
parent 759643acd7
commit a472b60ae0
4 changed files with 12 additions and 11 deletions

View File

@@ -9,6 +9,7 @@ import (
"math"
"sort"
"testing"
"time"
"git.rosy.net.cn/baseapi/utils"
)
@@ -103,8 +104,10 @@ func TestTryGetCookie(t *testing.T) {
}
func TestAAADS(t *testing.T) {
result := md5.Sum([]byte("2108663624000031|0")) //2108663624000031
chanIndex := int(int64(binary.LittleEndian.Uint32(result[8:])) % int64(1000))
now := time.Now().Unix()
fmt.Println(utils.Int64ToStr(now))
result := md5.Sum([]byte("2108849168000062" + utils.Int64ToStr(now)))
chanIndex := int(int64(binary.LittleEndian.Uint32(result[8:])) % int64(2000))
fmt.Println(chanIndex)
}