This commit is contained in:
邹宗楠
2026-05-18 17:24:22 +08:00
parent 2dbd4c74f7
commit 14b857441b
4 changed files with 61 additions and 13 deletions

View File

@@ -19,13 +19,13 @@ func init() {
baseapi.Init(sugarLogger)
// 菜市
//api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
api = New("589", "a81eb3df418d83d6a1a4b7c572156d2f", "", "")
// 果园
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
//商超
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_gxeIPSwnnHy8O_Ij2CxLdw")
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_gxeIPSwnnHy8O_Ij2CxLdw")
//cookieStr := `
// acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
//`

View File

@@ -106,10 +106,17 @@ func TestRetailListCase(t *testing.T) {
}
func TestRetailGet(t *testing.T) {
orderDetail, _ := api.OrderGetOrderDetail(3801609511466390200, false)
//2102128974103437493
orderDetail, _ := api.OrderGetOrderDetail(4102128971405404668, false)
if addressFee, ok := orderDetail["address_change_fee"]; ok {
fmt.Println(addressFee)
}
aa := orderDetail["order_tag_list"].([]interface{})
if len(aa) != 0 {
bb := utils.Interface2Int64List(aa)
fmt.Println(orderDetail["order_tag_list"].([]interface{}))
fmt.Println(bb)
}
t.Log(utils.Format4Output(orderDetail, false))
//result, err := api.RetailGet("16963213", "mtcode_1722809931159257157")
//if err != nil {