|
@@ -5,7 +5,6 @@ import (
|
|
|
"duoduo/models/pdd"
|
|
|
"duoduo/tools"
|
|
|
"duoduo/tools/app"
|
|
|
-
|
|
|
"fmt"
|
|
|
"github.com/gin-gonic/gin"
|
|
|
|
|
@@ -17,13 +16,21 @@ func PddDdkGoodsSearch(c *gin.Context) {
|
|
|
var inData pdd.PddDdkGoodsSearchRequest
|
|
|
var outData pdd.PddDdkGoodsSearchResponse
|
|
|
var pddErr pdd.ErrorPddResponse
|
|
|
-
|
|
|
+ //var p []byte
|
|
|
confIni, err := conf.ConnIni()
|
|
|
if err != nil {
|
|
|
app.Error(c, 400, err, err.Error())
|
|
|
return
|
|
|
}
|
|
|
+ //
|
|
|
+ //body, _ := ioutil.ReadAll(c.Request.Body)
|
|
|
+ //if body != nil {
|
|
|
+ // fmt.Print("请求body内容为:%s", string(body))
|
|
|
+ //}
|
|
|
|
|
|
+ //fmt.Print(string(c.Request.Body))
|
|
|
+ //c.Request.Body.Read(p)
|
|
|
+ //fmt.Print("p= ", string(p))
|
|
|
err = c.ShouldBindJSON(&inData)
|
|
|
if err != nil {
|
|
|
app.Error(c, 400, err, err.Error())
|