|
|
@@ -26,7 +26,7 @@ import ( |
|
|
|
// @Failure 400 {object} md.Response "具体错误" |
|
|
|
// @Router /api/v1/test [GET] |
|
|
|
func Demo(c *gin.Context) { |
|
|
|
fmt.Println("headers::::", c.Request.Header) |
|
|
|
fmt.Println("headers::::", utils.GetIP(c.Request)) |
|
|
|
utils.FilePutContents("headers", utils.SerializeStr(c.Request.Header)) |
|
|
|
var args interface{} |
|
|
|
if c.Request.Method == "GET" { |
|
|
|