1
This commit is contained in:
@@ -1,7 +1,6 @@
|
||||
package jdapi
|
||||
|
||||
import (
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"net/http"
|
||||
@@ -60,18 +59,6 @@ func TestAccessAPI(t *testing.T) {
|
||||
}
|
||||
}
|
||||
|
||||
func TestGet(t *testing.T) {
|
||||
key := "0bcbe9d6e6124cf2"
|
||||
iv := "aef2856a540f1326"
|
||||
decryDetail := "8FvHJcQmVojAIU61SNaS1ermHN2UVWknueRHFSNf2q5EbxNNmznoTYpRu7ySc/8CuU+QGZ9UIBMCyTuFafY3PuszEokEKc8M1Qfv/+o15h5bIU8LXfwRKOCm3JYzZtTOvJVU0hk/USvtDgraToszFl2hQZjZN5gGH1af0X8vopo="
|
||||
sDec, err := base64.StdEncoding.DecodeString(decryDetail)
|
||||
data, err := utils.AESCBCDecpryt(sDec, []byte(key), []byte(iv))
|
||||
localJdParams := make(map[string]interface{})
|
||||
ans, err := utils.Unmarshal2Map(data[:len(sDec)], localJdParams)
|
||||
fmt.Println(ans["billId"])
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
func TestAccessAPINoPage(t *testing.T) {
|
||||
result, err := api.AccessAPINoPage("address/allcities", nil, []string{"yn"}, nil, nil)
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user