Files
baseapi/platformapi/uuptapi/uupt_test.go
richboo111 c4223bbf96 1
2023-01-09 13:50:02 +08:00

64 lines
1.6 KiB
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())
//}
//
////计算运单价格
//func TestGetWaybillPrice(t *testing.T) {
// needPayMoney, priceToken, err := api.GetOrderPrice(&GetOrderPriceReq{
// //BaseReqInfo: &BaseReqInfo{
// //Sign: "A9D4D4380B6012F2E9A00E37243306D4",
// // NonceStr: "01c3ce7ce7604ab49d12ec69dfbdcfe8",
// //Timestamp: "1672998838",
// // OpenID: "8d8464e7c9354c1e88a3f5afa2a7922e",
// // AppID: "55c4542ae60e4d348edcfc93b06dd302",
// //},
// OriginID: "T00001",
// FromAddress: "郑州国际会展中心",
// ToAddress: "商务外环路17号",
// CityName: "郑州市",
// SendType: "0",
// ToLat: "34.784275",
// ToLng: "113.736445",
// FromLat: "34.778494",
// FromLng: "113.736858",
// })
//
// fmt.Println(needPayMoney, priceToken, err)
//}
//
//type testStruct struct {
// name string
//}
//
//func Test(t *testing.T) {
// var temp testStruct
// //var test bool
// //test = true
// //temp.name = "hdueu"
// fmt.Println(temp == testStruct{})
// //fmt.Print(utils.IsNil(temp))
//}