dadadelivery Notify
This commit is contained in:
@@ -36,8 +36,7 @@ func (c *DadaDeliveryController) Msg() {
|
|||||||
func (c *DadaDeliveryController) Notify() {
|
func (c *DadaDeliveryController) Notify() {
|
||||||
if c.Ctx.Input.Method() == http.MethodPost {
|
if c.Ctx.Input.Method() == http.MethodPost {
|
||||||
obj, notifyResponse := api.DadaAPI.GetNotifyMsg(c.Ctx.Input.RequestBody)
|
obj, notifyResponse := api.DadaAPI.GetNotifyMsg(c.Ctx.Input.RequestBody)
|
||||||
globals.SugarLogger.Debugf("dada notify, obj:%s", utils.Format4Output(obj, false))
|
if notifyResponse == nil && obj.MessageObj != nil {
|
||||||
if notifyResponse == nil {
|
|
||||||
err := api.DadaAPI.ConfirmRidderCancel(obj.MessageObj.OrderID, obj.MessageObj.DadaOrderID, true)
|
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)
|
globals.SugarLogger.Debugf("dada notify, obj:%s, err:%v", utils.Format4Output(obj, false), err)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user