2024-06-04 10:09:26 +08:00
|
|
|
package pay
|
|
|
|
|
|
|
|
import (
|
|
|
|
"fmt"
|
|
|
|
"log"
|
|
|
|
"testing"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestClient_GetUserInfo(t *testing.T) {
|
|
|
|
|
2024-06-04 11:24:58 +08:00
|
|
|
c, err := NewClient()
|
2024-06-04 10:09:26 +08:00
|
|
|
if err != nil {
|
|
|
|
t.Error(err)
|
|
|
|
}
|
|
|
|
|
|
|
|
req := CreateComplaintUploadRequest()
|
|
|
|
|
|
|
|
req.MchId = "3503"
|
|
|
|
req.ImageUrl = "https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64"
|
|
|
|
|
|
|
|
resp, err := c.ComplaintUpload(req)
|
|
|
|
if err != nil {
|
|
|
|
log.Fatalln(err)
|
|
|
|
}
|
|
|
|
fmt.Println(resp.GetHttpContentString())
|
|
|
|
fmt.Println(resp.GetHttpHeaders())
|
|
|
|
}
|