This commit is contained in:
苏尹岚
2020-10-20 17:24:30 +08:00
parent e09ffd1c92
commit c162a20312
3 changed files with 96 additions and 12 deletions

View File

@@ -3,6 +3,7 @@ package jdshopapi
import (
"encoding/base64"
"fmt"
"strings"
"testing"
"git.rosy.net.cn/baseapi/utils"
@@ -96,16 +97,6 @@ func TestFindStoreInfoByExtStoreId(t *testing.T) {
}
func TestWIREHL(t *testing.T) {
list := []int{1, 2, 3, 4, 5}
index := 0
for k, v := range list {
if v == 3 {
index = k
}
}
wsList := list
list = list[0:0]
list = append(list, wsList[0:index]...)
list = append(list, wsList[index+1:len(wsList)]...)
fmt.Println(list)
str := "https://51106.cn/c/22f06354336ca9"
fmt.Println(str[strings.LastIndex(str, "/")+1 : len(str)])
}