🐎 加入缓存

This commit is contained in:
微凉
2020-12-29 13:37:58 +08:00
parent 02e665ae37
commit bf3f741b22
16 changed files with 270 additions and 138 deletions

View File

@ -19,7 +19,7 @@ func CrosHandler() gin.HandlerFunc {
//context.Set("content-type", "application/json") //设置返回格式是json
if method == "OPTIONS" {
context.JSON(http.StatusOK, metaResponse(200,"Options Request!"))
context.JSON(http.StatusOK, gin.H{})
}
//处理请求