From 37756a159606f6d38fdf2766e450542239960445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Fri, 23 Dec 2022 17:53:11 +0800 Subject: [PATCH 1/2] 1 --- platformapi/tiktok_shop/tiktok_api/sku_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platformapi/tiktok_shop/tiktok_api/sku_test.go b/platformapi/tiktok_shop/tiktok_api/sku_test.go index c756af7a..29cf5728 100644 --- a/platformapi/tiktok_shop/tiktok_api/sku_test.go +++ b/platformapi/tiktok_shop/tiktok_api/sku_test.go @@ -246,7 +246,7 @@ func TestGetProductAuditList(t *testing.T) { func TestCreateShopData(t *testing.T) { imgs := make([]Imgs, 0, 0) - img := []string{"http://image.jxc4.com/image/2506b07009977017f4a412557584957b.jpg"} + img := []string{"http://p0.meituan.net/xianfu/83b499974d4507a31f6e654d41cf578149300.jpg"} for _, v := range img { if v != "" { imgs = append(imgs, Imgs{ From 24c940d55345b4ced372cb2f67597fefdee84542 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=82=B9=E5=AE=97=E6=A5=A0?= Date: Sat, 24 Dec 2022 11:19:35 +0800 Subject: [PATCH 2/2] 1 --- platformapi/mtpsapi/shop_test.go | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/platformapi/mtpsapi/shop_test.go b/platformapi/mtpsapi/shop_test.go index fd2c488c..8ff56152 100644 --- a/platformapi/mtpsapi/shop_test.go +++ b/platformapi/mtpsapi/shop_test.go @@ -19,7 +19,7 @@ func TestShopQuery(t *testing.T) { // if err == nil { // t.Fatal("应该报错找不到门店") // } - shopInfo, err := api.ShopQuery("800268") + shopInfo, err := api.ShopQuery("667553") if err != nil { t.Fatal(err) } @@ -28,18 +28,18 @@ func TestShopQuery(t *testing.T) { func TestShopCreate(t *testing.T) { shopInfo := &ShopInfo{ - ShopID: "800268", - ShopName: "手可摘鲜果店", + ShopID: "667553", + ShopName: "三里家园店", Category: ShopCategoryFruit, SecondCategory: ShopCategoryFruitFruit, - ContactName: "李廷杰", - ContactPhone: "15828509674", - ShopAddress: "四川省成都市双流县华阳街道南湖大道279号", - ShopLng: 104051308, - ShopLat: 30490037, + ContactName: "高朋朋", + ContactPhone: "15869188805", + ShopAddress: "浙江省杭州市下城区文晖街道三里家园一小区25幢杭州新三里家园农贸市场一层36号", + ShopLng: 120190237, + ShopLat: 30301060, CoordinateType: CoordinateTypeMars, DeliveryServiceCodes: utils.Int2Str(DeliveryServiceCodeRapid), - BusinessHours: "[{\"beginTime\":\"09:00\",\"endTime\":\"22:00\"}]", + BusinessHours: "[{\"beginTime\":\"07:00\",\"endTime\":\"19:30\"}]", } _, err := api.ShopCreate(shopInfo) if err != nil { @@ -85,7 +85,9 @@ func TestSimulateReportException(t *testing.T) { } func TestName(t *testing.T) { - cc := 1 - cc |= 1 | 2 - fmt.Println(cc) + ShopLat := 3030106 + if ShopLat <= 9999999 { + ShopLat *= 10 + } + fmt.Println(ShopLat) }