Merge remote-tracking branch 'origin/mark' into jdshop

This commit is contained in:
苏尹岚
2020-07-29 11:43:29 +08:00
10 changed files with 81 additions and 67 deletions

View File

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