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