This commit is contained in:
gazebo
2020-02-21 10:57:05 +08:00
parent 61744b8dde
commit 5a99e52796

View File

@@ -36,6 +36,7 @@ func (c *DadaDeliveryController) Msg() {
func (c *DadaDeliveryController) Notify() {
if c.Ctx.Input.Method() == http.MethodPost {
obj, notifyResponse := api.DadaAPI.GetNotifyMsg(c.Ctx.Input.RequestBody)
globals.SugarLogger.Debugf("dada notify, obj:%s", utils.Format4Output(obj, false))
if notifyResponse == nil {
err := api.DadaAPI.ConfirmRidderCancel(obj.MessageObj.OrderID, obj.MessageObj.DadaOrderID, true)
globals.SugarLogger.Debugf("dada notify, obj:%s, err:%v", utils.Format4Output(obj, false), err)