aa
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user