diff --git a/middleware/student.go b/middleware/student.go index bb6bfde..f1f254d 100644 --- a/middleware/student.go +++ b/middleware/student.go @@ -217,6 +217,7 @@ func fetchTokenFromAPI(username, password string) (string, error) { "password": password, } reqBodyJson, _ := json.Marshal(reqBody) + fmt.Println(string(reqBodyJson)) returnValue, err := http.Post(url, "application/json", bytes.NewBuffer(reqBodyJson)) if err != nil { return "", errors.New("获取token失败")