Update oauth.go

This commit is contained in:
lcsin
2023-09-22 13:13:32 +08:00
committed by GitHub
parent 029ad9c949
commit fe6d516e10

View File

@@ -89,7 +89,7 @@ func (_wx *wxTools) Getuserphonenumber(code string) (string, error) { // 手机
params, _ := json.Marshal(code)
resp, e := http.Post(url, "Content-Type", bytes.NewBuffer(params))
if e != nil {
return nil, e
return "", e
}
defer resp.Body.Close()