This commit is contained in:
苏尹岚
2020-12-07 14:44:51 +08:00
parent 36f241e878
commit e5aeda9c31
2 changed files with 30 additions and 2 deletions

View File

@@ -18,8 +18,8 @@ func init() {
logger, _ := zap.NewDevelopment()
sugarLogger = logger.Sugar()
baseapi.Init(sugarLogger)
// api = New("1Zbve", "ymsrrxlZXlmglK6Q", "MYsFZGgwwprIahzQ")
api = New("1Zbve", "htvse3XEDhBnCTNo", "QM5RnGl6kNh3ENLT")
api = New("1Zbve", "ymsrrxlZXlmglK6Q", "MYsFZGgwwprIahzQ")
// api = New("1Zbve", "htvse3XEDhBnCTNo", "QM5RnGl6kNh3ENLT")
api.SetTimestamp(time.Now().Unix())
}
@@ -38,3 +38,11 @@ func TestGetUserOrders(t *testing.T) {
}
t.Log(utils.Format4Output(result, false))
}
func TestUserRefund(t *testing.T) {
result, err := api.UserRefund("9000000020023544", "13111111111", "测试")
if err != nil {
t.Fatal(err)
}
t.Log(utils.Format4Output(result, false))
}