1
This commit is contained in:
25
platformapi/uuptapi/uupt_test.go
Normal file
25
platformapi/uuptapi/uupt_test.go
Normal file
@@ -0,0 +1,25 @@
|
||||
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())
|
||||
}
|
||||
Reference in New Issue
Block a user