mtunion回调

This commit is contained in:
苏尹岚
2021-04-20 17:45:30 +08:00
parent 75a753ba4e
commit a8c8946082
4 changed files with 172 additions and 32 deletions

View File

@@ -1 +1,22 @@
package mtunionapi
import (
"git.rosy.net.cn/baseapi/utils"
"testing"
)
func TestOrderList(t *testing.T) {
result, err := api.OrderList(6, utils.Str2Time("2021-01-01").Unix(), utils.Str2Time("2021-04-01").Unix(), 1)
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}
func TestCouponList(t *testing.T) {
result, err := api.CouponList(4, utils.Str2Time("2021-03-19").Unix(), utils.Str2Time("2021-03-25").Unix(), 1, "000000001")
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}