1
This commit is contained in:
@@ -13,7 +13,7 @@ func TestCancelOrder(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestOrderGet(t *testing.T) {
|
func TestOrderGet(t *testing.T) {
|
||||||
result, err := api.OrderGet("4055150105296238277")
|
result, err := api.OrderGet("4085900049668072177")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
} else {
|
} else {
|
||||||
@@ -31,7 +31,7 @@ func TestOrderAgreePartRefund(t *testing.T) {
|
|||||||
ReasonRemarks: "",
|
ReasonRemarks: "",
|
||||||
}
|
}
|
||||||
refundProductList := make([]*RefundProductList, 0, 0)
|
refundProductList := make([]*RefundProductList, 0, 0)
|
||||||
date, _ := api.GetReverseOrder("4015750049354953219")
|
date, _ := api.GetReverseOrder("4085900049668072177")
|
||||||
for _, v := range date {
|
for _, v := range date {
|
||||||
v2 := v.(map[string]interface{})
|
v2 := v.(map[string]interface{})
|
||||||
refundProduct := &RefundProductList{
|
refundProduct := &RefundProductList{
|
||||||
|
|||||||
@@ -16,5 +16,5 @@ func TestFoodList(t *testing.T) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func TestGetSkuPurchasePrice(t *testing.T) {
|
func TestGetSkuPurchasePrice(t *testing.T) {
|
||||||
api.GetSkuPurchasePrice("18048546", "16295939515")
|
api.GetSkuPurchasePrice("18048546", "305011066")
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -20,17 +20,13 @@ func init() {
|
|||||||
baseapi.Init(sugarLogger)
|
baseapi.Init(sugarLogger)
|
||||||
|
|
||||||
// 菜市
|
// 菜市
|
||||||
api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
//api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
||||||
|
|
||||||
// 果园
|
// 果园
|
||||||
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
||||||
|
|
||||||
//商超
|
//商超
|
||||||
<<<<<<< HEAD
|
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_r36FEse6_ywebQI65FNNWA") //token_n4TwqCntWWuvQwAawzxC0w
|
||||||
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_ovSLnyKTsMNx0RxMzJ1C7w") //token_n4TwqCntWWuvQwAawzxC0w
|
|
||||||
=======
|
|
||||||
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_v-zI40EPjPfXLmaKdgRPqA") //token_n4TwqCntWWuvQwAawzxC0w
|
|
||||||
>>>>>>> 1eebd3a457d772f335a41fd04f88e08ffc8e1bc3
|
|
||||||
cookieStr := `
|
cookieStr := `
|
||||||
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
||||||
`
|
`
|
||||||
|
|||||||
Reference in New Issue
Block a user