This commit is contained in:
苏尹岚
2020-06-27 11:51:02 +08:00
parent 4af8248432
commit 55a381d214
5 changed files with 21 additions and 7 deletions

View File

@@ -29,7 +29,7 @@ func init() {
// dadaapi = New("dada9623324449cd250", "30c2abbfe8a8780ad5aace46300c64b9", "73753", "http://callback.jxc4.com/dada/order", false)
// prod
dadaapi = New("dada147f7a190ce7b3c", "2c717ad914767d6e2beb3f743db9e477", "6660", "http://callback.jxc4.com/dada/order", true)
dadaapi = New("dada154e2a41fd6cef3", "7f97d8f258b70b450f04e7ab274ed8f8", "6660", "http://callback.jxc4.com/dadadelivery/msg", true)
// prod
testOrder = &OperateOrderParams{

View File

@@ -40,7 +40,7 @@ func TestAddOrderAfterQuery(t *testing.T) {
}
func TestCancel(t *testing.T) {
cancelResponse, err := dadaapi.CancelOrder("124651497574002", ReasonIDOther, "test")
cancelResponse, err := dadaapi.CancelOrder("88330338129212", ReasonIDOther, "接单时间过长")
if err != nil {
t.Fatal(err)
}