This commit is contained in:
邹宗楠
2026-03-25 09:13:07 +08:00
parent 93bd28290d
commit c740630ce6
31 changed files with 2077 additions and 556 deletions

View File

@@ -1,7 +1,9 @@
package ebaiapi
import (
"fmt"
"testing"
"time"
"git.rosy.net.cn/baseapi/utils"
)
@@ -58,3 +60,10 @@ func TestCommonBusinessCategories(t *testing.T) {
t.Log(utils.Format4Output(result, false))
}
}
func TestUpdateName(t *testing.T) {
t1 := utils.Str2Time("2026-02-07 15:38:34")
t2 := utils.Str2Time("2024-11-27 11:02:55")
fmt.Println(t2.Sub(t1) > 30*24*time.Hour)
fmt.Println(t1.Sub(t2) > 30*24*time.Hour)
}

View File

@@ -217,6 +217,11 @@ func TestShopClose(t *testing.T) {
}
func TestAbc(t *testing.T) {
a := "88492098261735"
fmt.Println(a[len(a)-4:])
}
func TestShopOffline(t *testing.T) {
err := api.ShopOffline("", testShopBaiduID)
if err != nil {