This commit is contained in:
苏尹岚
2021-04-19 11:33:16 +08:00
parent c51375afaf
commit a2b440172e
7 changed files with 16 additions and 14 deletions

View File

@@ -8,6 +8,7 @@ import (
"fmt"
"math"
"sort"
"strings"
"testing"
"time"
@@ -203,10 +204,8 @@ func TestUpdateBasic(t *testing.T) {
}
func TestUpdateExpand(t *testing.T) {
result := md5.Sum([]byte("12312321321321321"))
resultInt64 := int64(binary.LittleEndian.Uint32(result[8:]))
chanIndex := int(resultInt64 % int64(1000))
fmt.Println(chanIndex)
str := "https://wx.jxc4.com/jxcsRegist?mobile=15520595380"
fmt.Println(str[:strings.LastIndex(str,"?")])
}
func TestCreateGisFence(t *testing.T) {