提交 eb36e82e authored 作者: 屈传平's avatar 屈传平

hdh

上级 8e299e47
...@@ -235,8 +235,12 @@ func GetGoodsInfo(ctx context.Context, req *GoodsInfoReq) (res *GoodsInfoRes, er ...@@ -235,8 +235,12 @@ func GetGoodsInfo(ctx context.Context, req *GoodsInfoReq) (res *GoodsInfoRes, er
//商品回调 //商品回调
func GoodsCallBack(r *ghttp.Request) (res *GoodsNotifyRes, err error) { func GoodsCallBack(r *ghttp.Request) (res *GoodsNotifyRes, err error) {
body, err := CheckSign(r) //body, err := CheckSign(r)
if nil != err { //if nil != err {
// return
//}
body := r.GetBodyString()
if body == "" {
return return
} }
//err = json.Unmarshal([]byte(body), &res) //err = json.Unmarshal([]byte(body), &res)
......
...@@ -81,8 +81,12 @@ func OrderCreate(ctx context.Context, req *OerCreateReq) (res *OerCreateRes, err ...@@ -81,8 +81,12 @@ func OrderCreate(ctx context.Context, req *OerCreateReq) (res *OerCreateRes, err
//订单回调 //订单回调
func OrderCallBack(r *ghttp.Request) (res *OrderNotifyRes, err error) { func OrderCallBack(r *ghttp.Request) (res *OrderNotifyRes, err error) {
body, err := CheckSign(r) //body, err := CheckSign(r)
if nil != err { //if nil != err {
// return
//}
body := r.GetBodyString()
if body == "" {
return return
} }
err = json.Unmarshal([]byte(body), &res) err = json.Unmarshal([]byte(body), &res)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论