Browse Source

修改接口

yjp19871013@126.com 2 years ago
parent
commit
49c475686a
1 changed files with 2 additions and 2 deletions
  1. 2 2
      client.go

+ 2 - 2
client.go

@@ -53,8 +53,8 @@ func (client *Client) InvokePostMethodJson(appID string, methodName string, json
 	return client.invokeMethodJson(appID, methodName, "post", jsonData)
 }
 
-func (client *Client) InvokePostMethodMultipart(appID string, methodName string, data []byte) ([]byte, error) {
-	return client.invokeMethodWithContentType(appID, methodName, "post", "multipart/form-data", data)
+func (client *Client) InvokePostMethodMultipart(appID string, methodName string, multipartContentType string, data []byte) ([]byte, error) {
+	return client.invokeMethodWithContentType(appID, methodName, "post", multipartContentType, data)
 }
 
 func (client *Client) InvokePutMethodJson(appID string, methodName string, jsonData []byte) ([]byte, error) {