26 lines
531 B
Go
26 lines
531 B
Go
package uuptapi
|
|
|
|
import (
|
|
"fmt"
|
|
"testing"
|
|
)
|
|
|
|
var (
|
|
api = New("55c4542ae60e4d348edcfc93b06dd302", "76b362c06b1b4baa9e47bab6387a5356", "8d8464e7c9354c1e88a3f5afa2a7922e")
|
|
)
|
|
|
|
func TestSignParam(t *testing.T) {
|
|
testStr := map[string]interface{}{
|
|
"origin_id": "T00001",
|
|
"from_address": "郑州国际会展中心",
|
|
"from_usernote": "1层",
|
|
"to_address": "商务外环路17号",
|
|
"to_usernote": "1楼101",
|
|
}
|
|
ans := api.signParam(testStr)
|
|
fmt.Print(ans)
|
|
}
|
|
func TestRandStr(t *testing.T) {
|
|
fmt.Print(randStr())
|
|
}
|