This commit is contained in:
邹宗楠
2026-04-22 11:28:21 +08:00
parent 1ad90354d4
commit ce17598e8f
6 changed files with 14 additions and 8 deletions

View File

@@ -113,7 +113,7 @@ func TestRetailDiscountList(t *testing.T) { //56 1001
// 获取美团活动
directList, _ := api.RetailDiscountList("32235182", RetailActTypeDirectDown) // 折扣活动
for _, v := range directList {
if (v.ActPrice/v.OriginalPrice)*10 >= 3.01 {
if v.ActPrice/v.OriginalPrice*10 >= 3.01 {
threefoldUp++
} else {
threefoldDown++
@@ -125,7 +125,7 @@ func TestRetailDiscountList(t *testing.T) { //56 1001
}
fmt.Println(threefoldDown)
fmt.Println(threefoldDown)
fmt.Println(threefoldUp)
}
func TestNew(t *testing.T) {
@@ -266,6 +266,8 @@ func TestDeleteActSku(t *testing.T) {
}
func TestCEA(t *testing.T) {
a := []int{1, 2, 3, 4, 5}
fmt.Println(a[2:])
a := "11:%s"
fmt.Println(fmt.Sprintf(a, "1"))
}