1
This commit is contained in:
@@ -2,7 +2,7 @@ package dadaapi
|
||||
|
||||
//
|
||||
import (
|
||||
"fmt"
|
||||
"git.rosy.net.cn/baseapi"
|
||||
//"fmt"
|
||||
"testing"
|
||||
//"git.rosy.net.cn/baseapi"
|
||||
@@ -43,13 +43,14 @@ import (
|
||||
// // baseapi.SugarLogger.Debug(utils.Format4Output(cancelResponse, false))
|
||||
//}
|
||||
//
|
||||
//func TestCancel(t *testing.T) {
|
||||
// cancelResponse, err := dadaapi.CancelOrder("126099099192000002", ReasonIDOther, "协商一致")
|
||||
// if err != nil {
|
||||
// t.Fatal(err)
|
||||
// }
|
||||
// baseapi.SugarLogger.Debug(utils.Format4Output(cancelResponse, false))
|
||||
//}
|
||||
func TestCancel(t *testing.T) {
|
||||
cancelResponse, err := dadaapi.CancelOrder("1100551162883899675", ReasonIDOther, "协商一致")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
baseapi.SugarLogger.Debug(utils.Format4Output(cancelResponse, false))
|
||||
}
|
||||
|
||||
//
|
||||
//func TestGetComplaintReasons(t *testing.T) {
|
||||
// complaintReason, err := dadaapi.GetComplaintReasons()
|
||||
@@ -76,7 +77,4 @@ func TestQueryOrderInfo(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestAddTip(t *testing.T) {
|
||||
payload := map[string]interface{}{"categoryID": 3095}
|
||||
fmt.Println(payload["img"] != nil)
|
||||
fmt.Println(payload["img"] != "")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user