oss config
This commit is contained in:
		@@ -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) {
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user