From 3a11d0ab5c70fc48601dbb87eae83e8554ba5ca5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Wed, 10 Apr 2024 09:03:55 +0800 Subject: [PATCH] 1 --- platformapi/ebaiapi/shop_test.go | 3 ++- platformapi/jdapi/jdapi_test.go | 4 ++-- platformapi/jdapi/order_test.go | 16 ++++++++-------- platformapi/mtwmapi/retail_test.go | 13 ++++++------- 4 files changed, 18 insertions(+), 18 deletions(-) diff --git a/platformapi/ebaiapi/shop_test.go b/platformapi/ebaiapi/shop_test.go index 2a60a01a..ce7151b5 100644 --- a/platformapi/ebaiapi/shop_test.go +++ b/platformapi/ebaiapi/shop_test.go @@ -175,7 +175,8 @@ func TestSupplierList(t *testing.T) { func TestShopClose(t *testing.T) { aa := []int64{ - 2233065959, 32267184057, 32267387509, 32267034116, 32267387617, 32267715509, 32267034104, 32267184080, 2167002619, 2235330408, 32267089396, 2267092839, 32267630607, 32267089399, 32267387566, 2267092837, 32267144488, 32267184056, 32267387550, 32267258859, 32267387540, 32267184066, 32267184079, 32267804790, 32267034135, 2233066112, 32267258877, 32267258873, 2267141513, 32267315047, 32267315061, 32267315065, 2233066015, 32267315074, 32267315078, 32267630637, 32267105208, 32267387511, 32267358106, 32267358137, 32267358101, 32267387490, 1101809925, 32267387579, 32267753665, 32267655028, 32267655030, 32267804823, 32267779551, 32267674060, 32267630622, 32267674074, 32267715497, 32267742255, 200000081084, 32267779545, 32267779543, 2233066211, 32267804795, 32267812964, 32267804819, 32267655049, 32267697558, 32267715507, 32267674058, 200000080243, 100000135093, 506325097, 506256497, 504253088, 2125201021, 2125203286, 504878195, 1119844487, 2132873395, 1110785718, 1122087332, 1122236598, 508281125, 1137321209, 508415089, 1138428037, 508376256, 508246563, 1139471614, 1139632027, 509007554, 509019573, 1145229605, 509371608, 1144562343, 1144141773, 509163588, 1149127053, 1149066669, 1151305202, 511696051, 2233065941, 1161721135, 1176226197, 1178316283, 32267779345, + //2233065959, 32267184057, 32267387509, 32267034116, 32267387617, 32267715509, 32267034104, 32267184080, 2167002619, 2235330408, 32267089396, 2267092839, 32267630607, 32267089399, 32267387566, 2267092837, 32267144488, 32267184056, 32267387550, 32267258859, 32267387540, 32267184066, 32267184079, 32267804790, 32267034135, 2233066112, 32267258877, 32267258873, 2267141513, 32267315047, 32267315061, 32267315065, 2233066015, 32267315074, 32267315078, 32267630637, 32267105208, 32267387511, 32267358106, 32267358137, 32267358101, 32267387490, 1101809925, 32267387579, 32267753665, 32267655028, 32267655030, 32267804823, 32267779551, 32267674060, 32267630622, 32267674074, 32267715497, 32267742255, 200000081084, 32267779545, 32267779543, 2233066211, 32267804795, 32267812964, 32267804819, 32267655049, 32267697558, 32267715507, 32267674058, 200000080243, 100000135093, 506325097, 506256497, 504253088, 2125201021, 2125203286, 504878195, 1119844487, 2132873395, 1110785718, 1122087332, 1122236598, 508281125, 1137321209, 508415089, 1138428037, 508376256, 508246563, 1139471614, 1139632027, 509007554, 509019573, 1145229605, 509371608, 1144562343, 1144141773, 509163588, 1149127053, 1149066669, 1151305202, 511696051, 2233065941, 1161721135, 1176226197, 1178316283, 32267779345, + 512276503, } for i := 0; i < len(aa); i++ { diff --git a/platformapi/jdapi/jdapi_test.go b/platformapi/jdapi/jdapi_test.go index 330de930..8b9adbd1 100644 --- a/platformapi/jdapi/jdapi_test.go +++ b/platformapi/jdapi/jdapi_test.go @@ -29,11 +29,11 @@ func init() { // 天天果园 //api = New("c45e6510-00ba-4be2-977e-bcb9c9792cc7", "5d5577a2506f41b8b4ec520ba83490f5", "0b01b9eeb15b41dab1c3d05d95c17a26") // 京东果园 320406 - api = New("c454ef86-2213-4860-9a31-f2ef7e883386", "1dba76d40cac446ca500c0391a0b6c9d", "a88d031a1e7b462cb1579f12e97fe7f4") + //api = New("c454ef86-2213-4860-9a31-f2ef7e883386", "1dba76d40cac446ca500c0391a0b6c9d", "a88d031a1e7b462cb1579f12e97fe7f4") // 果切 379599 //api = New("ad4061a1-6a5c-43f9-bf51-b1232fd9499d", "f2ed33075faf4773a47e065acd79532b", "aed14cbbecac4456843570e90c5f46ec") // 381564 - //api = New("8d9e4443-3536-41ae-b6c7-677f90f1978b", "d2d1e2e3213d4320bc2712a684307831", "1750f5b9848d4a6492c1c20b487074da") + api = New("8d9e4443-3536-41ae-b6c7-677f90f1978b", "d2d1e2e3213d4320bc2712a684307831", "1750f5b9848d4a6492c1c20b487074da") // 384633 ///api = New("02a3f772-89f3-46f1-bbd5-74be346cba54", "e496a0f9b88a407297fea283b8dc9e29", "9bb82ffbec144c4b8fc8d627e5ca6a35") diff --git a/platformapi/jdapi/order_test.go b/platformapi/jdapi/order_test.go index 4a7ef86a..976ad3ba 100644 --- a/platformapi/jdapi/order_test.go +++ b/platformapi/jdapi/order_test.go @@ -132,16 +132,16 @@ func TestOrderAddTips(t *testing.T) { } func TestOrderQuery2(t *testing.T) { - //orderList, _, err := api.OrderQuery2(&OrderQueryParam{ - // OrderPurchaseTimeBegin: "2022-11-05 00:00:00", - // OrderPurchaseTimeEnd: "2022-11-05 23:59:59", - // DeliveryStationNo: "11954632", - // PageNo: 1, - // PageSize: 99999, - //}) orderList, _, err := api.OrderQuery2(&OrderQueryParam{ - OrderID: 2404021632000192, + OrderPurchaseTimeBegin: "2024-04-09 00:00:00", + OrderPurchaseTimeEnd: "2024-04-09 23:59:59", + DeliveryStationNo: "12781207", + PageNo: 1, + PageSize: 99999, }) + //orderList, _, err := api.OrderQuery2(&OrderQueryParam{ + // OrderID: 2404021632000192, + //}) t.Log(utils.Format4Output(orderList, false)) if err != nil { t.Fatal(err.Error()) diff --git a/platformapi/mtwmapi/retail_test.go b/platformapi/mtwmapi/retail_test.go index b0370fb9..62918708 100644 --- a/platformapi/mtwmapi/retail_test.go +++ b/platformapi/mtwmapi/retail_test.go @@ -6,7 +6,6 @@ import ( "fmt" "git.rosy.net.cn/baseapi/utils" "git.rosy.net.cn/jx-callback/globals" - "math" "strings" "testing" "time" @@ -244,11 +243,11 @@ func TestRetailDelete(t *testing.T) { } count += len(fromFoodList) - for k, v := range fromFoodList { - if err := api.RetailDelete(utils.Int2Str(k), poiCode, v.AppFoodCode); err != nil { - fmt.Println(err) - } - } + //for k, v := range fromFoodList { + // if err := api.RetailDelete(utils.Int2Str(k), poiCode, v.AppFoodCode); err != nil { + // fmt.Println(err) + // } + //} //stockList := make([]*BareStoreFoodInfo, 0, 100) //for _, fl := range fromFoodList { // stockList = append(stockList, &BareStoreFoodInfo{ @@ -546,5 +545,5 @@ func TestSplit(t *testing.T) { } func Test22222(t *testing.T) { - fmt.Println(math.Ceil(float64(100) / float64(50))) + fmt.Println(32&(2|32) != 0) }