1
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
package mtwmapi
|
||||
|
||||
import (
|
||||
"git.rosy.net.cn/jx-callback/globals"
|
||||
"testing"
|
||||
"time"
|
||||
|
||||
@@ -154,18 +155,14 @@ func TestRetailDiscountBatchSave(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestRetailDiscountList(t *testing.T) {
|
||||
result, err := api.RetailDiscountList("8040309", RetailActTypeDirectDown)
|
||||
result, err := api.RetailDiscountList("8694203", RetailActTypeSecKill)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestRetailDiscountDelete(t *testing.T) {
|
||||
err := api.RetailDiscountDelete(testPoiCode, RetailActTypeDirectDown, []string{"329187452"})
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
for _, v := range result {
|
||||
globals.SugarLogger.Debugf("%s", utils.Format4Output(v, false))
|
||||
}
|
||||
//t.Log(utils.Format4Output(result, false))
|
||||
}
|
||||
|
||||
func TestInStoreCouponList(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user