aa
This commit is contained in:
@@ -730,16 +730,15 @@ func TestStoreProductSearch(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestUpdateStatus(t *testing.T) {
|
||||
//err := api.UpdateStatus(1000069298, JdsStoreStatusOnline)
|
||||
//if err != nil {
|
||||
// t.Fatal(err)
|
||||
//}
|
||||
//t.Log(utils.Format4Output(result, false))
|
||||
data, err := utils.AESCBCEncpryt([]byte("{aasda:123}"), []byte("jingxicaishirosy"), []byte("jingxicaishirosy"))
|
||||
sEnc := base64.StdEncoding.EncodeToString(data)
|
||||
fmt.Println("1111", sEnc, err)
|
||||
|
||||
data2, _ := base64.StdEncoding.DecodeString(sEnc)
|
||||
aa, _ := utils.AESCBCDecpryt(data2, []byte("jingxicaishirosy"), []byte("jingxicaishirosy"))
|
||||
fmt.Println(string(aa))
|
||||
s := []int{3, 5, 2}
|
||||
for i := 0; i < len(s)-1; i++ {
|
||||
for j := 0; j < len(s)-i-1; j++ {
|
||||
if s[j] < s[j+1] {
|
||||
temp := s[j]
|
||||
s[j] = s[j+1]
|
||||
s[j+1] = temp
|
||||
}
|
||||
}
|
||||
}
|
||||
fmt.Println(s)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user