From 757918798cb2caafb76c6bd14cfefc4b8d68d8c3 Mon Sep 17 00:00:00 2001 From: macbook-maxwell Date: Tue, 8 Oct 2024 20:39:16 +0800 Subject: [PATCH] upate --- middleware/student.go | 1 + 1 file changed, 1 insertion(+) 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失败")