diff --git a/platformapi/limit_access_speed_test.go b/platformapi/limit_access_speed_test.go index c0c5b024..0ff91f4c 100644 --- a/platformapi/limit_access_speed_test.go +++ b/platformapi/limit_access_speed_test.go @@ -1,7 +1,9 @@ package platformapi import ( + "encoding/json" "fmt" + "sort" "testing" "time" @@ -49,3 +51,25 @@ func TestLimitSpeed(t *testing.T) { }) time.Sleep(30 * time.Second) } + +func Test_store(b *testing.T) { + tempTagList := []int{1, 2, 3, 9, 5, 4} + sort.Slice(tempTagList, func(i, j int) bool { + if tempTagList[i] > tempTagList[j] { + return false + } + return true + }) + fmt.Println(tempTagList) +} + +func Test_string_byte(t *testing.T) { + //rankKey := map[string]string{"a": "刘磊", "b": "张雨绮%s", "c": "