Merge branch 'master' of https://e.coding.net/rosydev/baseapi
This commit is contained in:
@@ -556,7 +556,7 @@ func (a *API) OrderListAll(shopID string, baiduShopID int64, startTime, endTime
|
||||
return listOrder, nil
|
||||
}
|
||||
|
||||
// 查看部分退款订单详情
|
||||
// 查看部分退款订单详情(平台已经不再维护这个接口改用下面接口)
|
||||
func (a *API) OrderPartRefundGet(orderID string) (orderMap map[string]interface{}, err error) {
|
||||
result, err := a.AccessAPI("order.partrefund.get", map[string]interface{}{
|
||||
"order_id": orderID,
|
||||
|
||||
@@ -65,7 +65,7 @@ func TestOrderAgreeRefund(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestGetReverseOrder(t *testing.T) {
|
||||
date, _ := api.GetReverseOrder("4035480124822912660")
|
||||
date, _ := api.GetReverseOrder("4098670052313925323")
|
||||
for _, v := range date {
|
||||
fmt.Println(v)
|
||||
}
|
||||
@@ -106,7 +106,7 @@ func TestOrderListAll(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestOrderPartRefundGet(t *testing.T) {
|
||||
result, err := api.OrderPartRefundGet("4015750049354953219")
|
||||
result, err := api.OrderPartRefundGet("4098670052313925323")
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
} else {
|
||||
|
||||
@@ -211,7 +211,7 @@ func TestC(t *testing.T) {
|
||||
//}
|
||||
//
|
||||
func TestGetJdUpcCodeByName(t *testing.T) {
|
||||
result, err := api.GetJdUpcCodeByName("", "6973652201610", 1, 5)
|
||||
result, err := api.GetJdUpcCodeByName("", "6958483100042", 1, 5)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
@@ -390,3 +390,8 @@ func TestGetAllCities(t *testing.T) {
|
||||
// timestamp string
|
||||
// sign string
|
||||
//}
|
||||
|
||||
func TestName(t *testing.T) {
|
||||
fmt.Println((25 & 2) != 0)
|
||||
fmt.Println((25 & 4) != 0)
|
||||
}
|
||||
|
||||
@@ -23,10 +23,10 @@ func init() {
|
||||
//api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
|
||||
|
||||
// 果园
|
||||
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
||||
api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
||||
|
||||
//商超
|
||||
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_nngsVP37s-HXY86xe85H7Q") //token_n4TwqCntWWuvQwAawzxC0w
|
||||
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_nngsVP37s-HXY86xe85H7Q") //token_n4TwqCntWWuvQwAawzxC0w
|
||||
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_r36FEse6_ywebQI65FNNWA") //token_n4TwqCntWWuvQwAawzxC0w
|
||||
cookieStr := `
|
||||
acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
||||
|
||||
@@ -44,10 +44,10 @@ func TestPoiSave(t *testing.T) {
|
||||
//}
|
||||
poiParams := map[string]interface{}{}
|
||||
//utils.FilterMapNilMembers(utils.Struct2FlatMap(result[0]))
|
||||
//poiParams["address"] = "北京市朝阳区百子湾路32号院6号楼-1层C3-1号"
|
||||
poiParams["pic_url"] = "https://image.jxc4.com/image/259873ec6392f963d2f3d30669d1c0a9.jpg"
|
||||
poiParams["address"] = "云南省昆明市官渡区太和街道办事处双龙桥32号院临江路693号"
|
||||
//poiParams["pic_url"] = "https://image.jxc4.com/image/259873ec6392f963d2f3d30669d1c0a9.jpg"
|
||||
//poiParams["name"] = "京西菜市(礼嘉桥村市场店)"
|
||||
err := api.PoiSave("15070168", poiParams)
|
||||
err := api.PoiSave("3664790", poiParams)
|
||||
fmt.Println(err)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user