1
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user