oss config

This commit is contained in:
2023-04-07 04:15:50 +08:00
parent b20e864b37
commit dc92631a73
5 changed files with 41 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ func init() {
// 实现一个 web api 服务(获取指定尺寸的图片)
func main() {
runtime.GOMAXPROCS(runtime.NumCPU())
models.GetMysql() // 连接数据库
models.GetMysql() // 测试连接数据库
http.HandleFunc("/img/", func(w http.ResponseWriter, r *http.Request) {