通过验证码注册

This commit is contained in:
2023-08-23 19:49:29 +08:00
parent 5464da549a
commit 2568659a45
6 changed files with 106 additions and 106 deletions

View File

@@ -3,7 +3,7 @@ package utils
import (
"encoding/json"
"fmt"
"io/ioutil"
"io"
"log"
"math/rand"
"net/http"
@@ -12,7 +12,7 @@ import (
)
func BodyRead(r *http.Request) (form map[string]interface{}) {
body, err := ioutil.ReadAll(r.Body)
body, err := io.ReadAll(r.Body)
if err != nil {
log.Println(err)
return