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