master #14

Merged
sinhluu merged 10 commits from master into develop 2023-10-25 02:20:12 +00:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 6bf4914ade - Show all commits

View File

@ -48,7 +48,7 @@ func (c *Client) EstimateFee(req *EstimateFeeReq) (r Response) {
r.Request.Body = pjson.ToBytes(body) r.Request.Body = pjson.ToBytes(body)
r.Request.URL = path r.Request.URL = path
resp, err := c.httpClient.R(). resp, err := c.httpClient.R().
SetFormData(body). SetMultipartFormData(body).
Post(path) Post(path)
if err != nil { if err != nil {
r.Error = fmt.Errorf("jtepxress: request %s, err %v", path, err) r.Error = fmt.Errorf("jtepxress: request %s, err %v", path, err)
@ -72,7 +72,7 @@ func (c *Client) CancelOrder(req *CancelOrderReq) (r Response) {
r.Request.Body = pjson.ToBytes(body) r.Request.Body = pjson.ToBytes(body)
r.Request.URL = path r.Request.URL = path
resp, err := c.httpClient.R(). resp, err := c.httpClient.R().
SetFormData(body). SetMultipartFormData(body).
Post(path) Post(path)
if err != nil { if err != nil {
r.Error = fmt.Errorf("jtepxress: request %s, err %v", path, err) r.Error = fmt.Errorf("jtepxress: request %s, err %v", path, err)
@ -98,7 +98,7 @@ func (c *Client) CreateOrder(req *CreateOrderReq) (r Response) {
r.Request.URL = path r.Request.URL = path
resp, err := c.httpClient.R(). resp, err := c.httpClient.R().
SetFormData(body). SetMultipartFormData(body).
Post(path) Post(path)
if err != nil { if err != nil {
r.Error = fmt.Errorf("jtepxress: request %s, err %v", path, err) r.Error = fmt.Errorf("jtepxress: request %s, err %v", path, err)