Browse Source

小程序码问题debug

master v0.3.4
lijianbin 1 year ago
parent
commit
8e322f45cc
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      http.go

+ 3
- 0
http.go View File

@ -4,6 +4,7 @@ import (
"bytes" "bytes"
"encoding/xml" "encoding/xml"
"io/ioutil" "io/ioutil"
"log"
"net/http" "net/http"
"strings" "strings"
) )
@ -23,6 +24,8 @@ func SendHttp(method, url string, param map[string]string, header ...map[string]
paramStr = paramStr[0 : len(paramStr)-1] paramStr = paramStr[0 : len(paramStr)-1]
} }
log.Println("param",strings.NewReader(paramStr))
req, err := http.NewRequest(method, url, strings.NewReader(paramStr)) req, err := http.NewRequest(method, url, strings.NewReader(paramStr))
if err != nil { if err != nil {
return []byte(""), err return []byte(""), err


Loading…
Cancel
Save