🎇 支持mysql

This commit is contained in:
微凉
2021-03-16 23:15:37 +08:00
parent 4d0d892ce7
commit a5b2f998ab
15 changed files with 85 additions and 89 deletions

View File

@@ -42,4 +42,4 @@ func RefreshTokenAll() string {
return res[:len(res)-1]
}
return ""
}
}

View File

@@ -155,7 +155,7 @@ func DoPost(url string, request interface{}, auth string) (body []byte, err erro
return
}
if auth != "" {
req.Header.Set("authorization", conf.Bearer + auth)
req.Header.Set("authorization", conf.Bearer+auth)
}
req.Header.Add("content-type", "application/json")
req.Header.Add("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36")