果园美团又tm改
This commit is contained in:
@@ -16,17 +16,28 @@ func TestShopList(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestShopCreate(t *testing.T) {
|
||||
|
||||
// result, err := api.ShopCreate("", testShopBaiduID)
|
||||
// if err != nil {
|
||||
// t.Fatal(err)
|
||||
// } else {
|
||||
// t.Log(utils.Format4Output(result, false))
|
||||
// }
|
||||
result, err := api.ShopCreate(map[string]interface{}{
|
||||
"shop_id": "123123123",
|
||||
"business_form_id": "179",
|
||||
"service_phone": "1111111",
|
||||
"invoice_support": "2",
|
||||
"package_box_price": "0",
|
||||
"encrypt": "",
|
||||
"category1": "",
|
||||
"category2": "",
|
||||
"category3": "",
|
||||
"name": "测试",
|
||||
"supplier_id": "2233065879",
|
||||
})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
} else {
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
}
|
||||
|
||||
func TestShopGet(t *testing.T) {
|
||||
result, err := api.ShopGet("", testShopBaiduID)
|
||||
result, err := api.ShopGet("", 32267697558) //2233065879
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
} else {
|
||||
|
||||
@@ -16,7 +16,7 @@ func TestOrderRatesGet(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestOrderCommetGet(t *testing.T) {
|
||||
commentList, err := api.OrderCommetGet("102002", 0, utils.Str2Time("2019-09-29"), utils.Str2Time("2019-09-30"), ReplyStatusAll)
|
||||
commentList, err := api.OrderCommetGet("103035", 0, utils.Str2Time("2020-07-01"), utils.Str2Time("2020-09-30"), ReplyStatusAll)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user