upate
This commit is contained in:
parent
5fdbe419c1
commit
757918798c
@ -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失败")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user