This commit is contained in:
邹宗楠
2026-02-24 09:58:35 +08:00
parent ab96fc6343
commit cce0ab33be
6 changed files with 47 additions and 39 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_ttis9SGNQXJ9PLMEpilPFQ")
api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_kG4zfLsdUoDljUH6ds1PzQ")
//cookieStr := `
// acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
//`

View File

@@ -31,7 +31,7 @@ func getTimeFromTimestamp(timeStamp int64) time.Time {
}
func TestOrderGetOrderDetail(t *testing.T) {
result, err := api.OrderGetOrderDetail(301957391218748322, false)
result, err := api.OrderGetOrderDetail(5301969382988477903, false)
if err != nil {
t.Fatal(err)
}
@@ -144,7 +144,7 @@ func TestOrderGetRiderInfoPhoneNumber(t *testing.T) {
}
func TestGetOrderRefundDetail(t *testing.T) {
result, err := api.GetOrderRefundDetail(2801668233203841348, 0)
result, err := api.GetOrderRefundDetail(5301969382988477903, 0)
if err != nil {
t.Fatal(err)
}
@@ -463,7 +463,17 @@ func BatchInitSkuMT2MT(fromSku []*AppFood, toApi *API, vendorStoreID string, off
}
func TestGetOrderAddress(t *testing.T) {
address, err := api.GetOrderAddress(301957513500953108, 3)
address, err := api.GetOrderAddress(4001960782283263314, 3)
fmt.Println(address)
fmt.Println(err)
}
func TestName(t *testing.T) {
storeMap := []string{"1", "2", "3"}
mapList := make(map[string][]string, 10)
for i := 0; i < len(storeMap); i++ {
mapList[storeMap[i]] = append(mapList[storeMap[i]], storeMap[i])
}
fmt.Println(mapList)
}

File diff suppressed because one or more lines are too long