京东商城商品同步

This commit is contained in:
苏尹岚
2020-05-26 14:06:10 +08:00
parent 988e3ebacc
commit 92014171df
3 changed files with 33 additions and 10 deletions

View File

@@ -2,6 +2,7 @@ package controllers
import (
"bytes"
"fmt"
"io/ioutil"
"net/http"
@@ -18,6 +19,7 @@ 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))