1
This commit is contained in:
@@ -2,6 +2,7 @@ package dadaapi
|
||||
|
||||
//
|
||||
import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi"
|
||||
//"fmt"
|
||||
"testing"
|
||||
@@ -69,12 +70,19 @@ func TestCancel(t *testing.T) {
|
||||
//
|
||||
func TestQueryOrderInfo(t *testing.T) {
|
||||
dadaapi = New("dada154e2a41fd6cef3", "7f97d8f258b70b450f04e7ab274ed8f8", "6660", "http://callback.jxc4.com/dadadelivery/msg", true)
|
||||
result, err := dadaapi.QueryOrderInfo("1100558421786954920")
|
||||
result, err := dadaapi.QueryOrderInfo("1100561003845430062")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestAddTip(t *testing.T) {
|
||||
type Names struct {
|
||||
Name string `json:"name"`
|
||||
}
|
||||
|
||||
func TestAddTip(t *testing.T) {
|
||||
name := &Names{Name: "京西菜市"}
|
||||
name.Name = "京西菜市" + "-" + "京西菜市(号门店)"
|
||||
fmt.Println(utils.Format4Output(name, false))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user