From b00201bfca13e1f0ea1348e45660792884038f22 Mon Sep 17 00:00:00 2001 From: gazebo Date: Fri, 28 Sep 2018 14:13:28 +0800 Subject: [PATCH] - jd token call back. --- controllers/jd_order.go | 7 +++++++ 1 file changed, 7 insertions(+) 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() +}