diff --git a/controllers/jd_order.go b/controllers/jd_order.go index eea8e0cd6..7c7a29da4 100644 --- a/controllers/jd_order.go +++ b/controllers/jd_order.go @@ -5,6 +5,7 @@ import ( "git.rosy.net.cn/baseapi/platformapi/jdapi" "git.rosy.net.cn/jx-callback/business/partner/purchase/jd" + "git.rosy.net.cn/jx-callback/globals" "git.rosy.net.cn/jx-callback/globals/api" "github.com/astaxie/beego" ) @@ -90,3 +91,9 @@ func (c *DjswController) PushDeliveryStatus() { func (c *DjswController) OrderCommentPush() { c.orderStatus(false) } + +func (c *DjswController) Token() { + globals.SugarLogger.Info(string(c.Ctx.Input.RequestBody)) + c.Data["json"] = jdapi.Err2CallbackResponse(nil, "") + c.ServeJSON() +}