This commit is contained in:
邹宗楠
2024-02-18 15:52:56 +08:00
parent b9652e0fd1
commit b80a027f78
12 changed files with 69 additions and 74 deletions

View File

@@ -26,7 +26,7 @@ func TestShopCategoryGet(t *testing.T) {
}
func TestShopGet222(t *testing.T) {
api.ShopGet("800437", 0)
api.ShopGet("669168", 0)
}
func TestShopCategoryUpdate(t *testing.T) {

View File

@@ -3,6 +3,7 @@ package ebaiapi
import (
"fmt"
"testing"
"time"
"git.rosy.net.cn/baseapi/utils"
)
@@ -96,7 +97,7 @@ func TestShopUpdate(t *testing.T) {
}
func TestShopBusStatusGet(t *testing.T) {
result, err := api.ShopBusStatusGet("", 32267034105, PlatformFlagElm)
result, err := api.ShopBusStatusGet("", 1157916361, PlatformFlagElm)
if err != nil {
t.Fatal(err)
} else {
@@ -161,10 +162,19 @@ func TestShopOpen(t *testing.T) {
}
func TestShopClose(t *testing.T) {
err := api.ShopClose("", 2233065924)
if err != nil {
t.Fatal(err)
aa := []int64{
508119444, 508415089, 508400141, 508325408, 508281125, 1138084276, 508380678, 508415109, 508271210, 508376256, 1138456086, 2235877567, 1138992552, 1138963763, 508377036, 508292769, 1138968440, 1138993841, 1138981591, 1139632027, 508312611, 508387757, 508417755, 508246563, 508163472, 508178145, 1139778171, 1139471614, 1140168573, 2267121509, 1140171041, 1127835433, 1139781155, 1141873751, 1139765248, 1142633724, 509005065, 508825112, 1143733509, 1142858316, 509107995, 509007554, 509113564, 1145199589, 509019573, 1145229605, 1144799169, 509042941, 509295609, 1146634644, 1144170755, 509156468, 509196413, 1147259519, 1144536493, 1144556440, 1144562343, 509371608, 1144667532, 509183483, 509348026, 509163588, 1148999655, 509388035, 509227647, 1144307543, 509317001, 1144141773, 509351958, 509151553, 1147299542, 1149055614, 509364406, 509264564, 1149331202, 509374585, 1149086600, 509625059, 1149111811, 1149040893, 1149371991, 1149381892, 1149127053, 509896143, 1151305202, 509896878, 1151130676, 1151235596, 1151130808, 509736972, 2233065941, 1151231064, 1151316478, 509878603, 509730365, 2233066023, 1137966713, 510086032, 510006495, 1155314681, 1155361393, 510024287, 509999215, 1155331892, 510004243, 1155432211, 510170905, 1155537892, 1155478340, 510182673, 510226245, 510322562, 1157653364, 1161721135, 1161746045, 1157916361, 510579703, 1149385505, 1164043546, 1149066669, 1147319541, 1168553643, 1168718701, 1136712384, 32267184083, 511574437, 511891637, 512276503, 1176226197, 1178316283, 32267779345, 2233066053, 32267387598, 511696051, 32267358089, 513523362, 32267655046, 32267674076, 514710033, 2233066358,
}
for i := 0; i < len(aa); i++ {
err := api.ShopClose("", aa[i])
if err != nil {
t.Fatal(err)
}
t.Logf("id .......%d", aa[i])
time.Sleep(1 * time.Second)
}
}
func TestShopOffline(t *testing.T) {