测试鼎

This commit is contained in:
苏尹岚
2020-07-28 18:19:48 +08:00
parent e6381eca6a
commit 8971f78fe7

View File

@@ -2,7 +2,6 @@ package controllers
import ( import (
"bytes" "bytes"
"fmt"
"io/ioutil" "io/ioutil"
"net/http" "net/http"
@@ -19,7 +18,6 @@ type JdsController struct {
} }
func (c *JdsController) Msg() { func (c *JdsController) Msg() {
fmt.Println("testjdscll")
if c.Ctx.Input.Method() == http.MethodPost { if c.Ctx.Input.Method() == http.MethodPost {
ctx := c.Ctx ctx := c.Ctx
ctx.Request.Body = ioutil.NopCloser(bytes.NewReader(ctx.Input.RequestBody)) ctx.Request.Body = ioutil.NopCloser(bytes.NewReader(ctx.Input.RequestBody))