This commit is contained in:
邹宗楠
2022-06-07 17:02:08 +08:00
parent 50f2a5fcff
commit 7df9d95734
3 changed files with 39 additions and 2 deletions

View File

@@ -56,6 +56,7 @@ func TestFMT(t *testing.T) {
fmt.Println(3&4 != 0)
fmt.Println(3&2 != 0)
fmt.Println(3&1 != 0)
fmt.Println(0&512 != 0)
}
func TestJieXi(t *testing.T) {
@@ -70,3 +71,26 @@ func TestJieXi(t *testing.T) {
fmt.Println("err==========", err2)
fmt.Println("payInfo===", callback.PaymentOrderNo)
}
func TestRefund(t *testing.T) {
a := New("5c08a0465cf0f996af254a03b6c2548defef87ad ", "tta6a1d01c399f264201")
data, err := a.QueryRefundMsg()
fmt.Println(err)
fmt.Println(data)
}
func TestSQRefund(t *testing.T) {
a := New("5c08a0465cf0f996af254a03b6c2548defef87ad ", "tta6a1d01c399f264201")
cc := &RefundOrderReq{
AppID: a.GetAppID(),
OutOrderNo: "88392206436412",
OutRefundNo: "ceshi11100100044",
Reason: "协商一致",
RefundAmount: 99,
//CpExtra: "msg",
//NotifyURL: "jxc3.com",
}
aa, err := a.RefundOrderTT(cc)
fmt.Println(aa)
fmt.Println(err)
}