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"))
|
||||
}
|
||||
|
||||
@@ -25,7 +25,7 @@ func init() {
|
||||
//api = New("4123", "df2c88338b85f830cebce2a9eab56628", "", "")
|
||||
|
||||
//商超
|
||||
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_oz-C3lOxJJ1EuBW1X31LqA")
|
||||
//api = New("5873", "41c479790a76f86326f89e8048964739", "", "token_hgR5SlP5pmRApWkUNTRFNQ")
|
||||
//cookieStr := `
|
||||
// acctId=57396785; token=0bWbK5VbK50E2BmIhIH2zHB-am_y7mB37yXHm6RLZWx4*; wmPoiId=-1;
|
||||
//`
|
||||
|
||||
@@ -31,7 +31,7 @@ func getTimeFromTimestamp(timeStamp int64) time.Time {
|
||||
}
|
||||
|
||||
func TestOrderGetOrderDetail(t *testing.T) {
|
||||
result, err := api.OrderGetOrderDetail(3802032442031470827, false)
|
||||
result, err := api.OrderGetOrderDetail(3102067553224122590, false)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
@@ -146,8 +146,8 @@ func TestRetailCatSkuBatchDelete(t *testing.T) {
|
||||
func TestBatchSetPrice(t *testing.T) {
|
||||
param := make([]*SpuData, 0, 0)
|
||||
param = append(param, &SpuData{
|
||||
AppSpuCode: "6113801",
|
||||
SkuID: "6113801",
|
||||
AppSpuCode: "6099887",
|
||||
SkuID: "6099887",
|
||||
PurchasePrice: "0.01",
|
||||
})
|
||||
err := api.BatchSetRestockingPrice(utils.GetUUID(), "31985068", param)
|
||||
|
||||
Reference in New Issue
Block a user