淘宝联盟

This commit is contained in:
suyl
2021-04-25 17:22:10 +08:00
parent d23bba1392
commit 88a657ba9e
9 changed files with 380 additions and 14 deletions

View File

@@ -36,7 +36,7 @@ func TestMiniCode(t *testing.T) {
}
func TestGenerateLink(t *testing.T) {
result, err := api.GenerateLink(2, 1, strings.ToLower("12521"))
result, err := api.GenerateLink(2, 2, strings.ToLower("9999999999999"))
if err != nil {
t.Fatal(err)
}

View File

@@ -14,7 +14,7 @@ func TestOrderList(t *testing.T) {
}
func TestCouponList(t *testing.T) {
result, err := api.CouponList(4, utils.Str2Time("2021-03-19").Unix(), utils.Str2Time("2021-03-25").Unix(), 1, "000000001")
result, err := api.CouponList(4, utils.Str2Time("2021-04-18").Unix(), utils.Str2Time("2021-04-23").Unix(), 1, "9999999999999")
if err != nil {
t.Fatal(err)
}