This commit is contained in:
邹宗楠
2024-04-19 10:14:36 +08:00
parent 55b24bb283
commit 7a3a7d18f8
4 changed files with 135 additions and 24 deletions

View File

@@ -28,6 +28,7 @@ func (c *Djsw2Controller) handleMsg(handler func(*jdapi.API, interface{}) *jdapi
func (c *Djsw2Controller) orderStatus() {
if c.Ctx.Input.Method() == http.MethodPost {
callbackResponse := c.handleMsg(func(a *jdapi.API, obj interface{}) (callbackResponse *jdapi.CallbackResponse) {
globals.SugarLogger.Debugf("========jds2 := %s", utils.Format4Output(obj, false))
if orderMsg, ok := obj.(*jdapi.CallbackOrderMsg); ok {
orderman.FixedOrderManager.OnNewFakeJdOrder(orderMsg.BillID)
}
@@ -41,6 +42,7 @@ func (c *Djsw2Controller) orderStatus() {
}
func (c *Djsw2Controller) NewOrder() {
globals.SugarLogger.Debugf("========jds2 := %s", "NewOrder")
c.orderStatus()
}
@@ -49,18 +51,22 @@ func (c *Djsw2Controller) OrderAdjust() {
}
func (c *Djsw2Controller) OrderWaitOutStore() {
globals.SugarLogger.Debugf("========jds2 := %s", "OrderWaitOutStore")
c.nullOperation()
}
func (c *Djsw2Controller) PickFinishOrder() {
globals.SugarLogger.Debugf("========jds2 := %s", "PickFinishOrder")
c.nullOperation()
}
func (c *Djsw2Controller) DeliveryOrder() {
globals.SugarLogger.Debugf("========jds2 := %s", "DeliveryOrder")
c.nullOperation()
}
func (c *Djsw2Controller) FinishOrder() {
globals.SugarLogger.Debugf("========jds2 := %s", "FinishOrder")
c.nullOperation()
}
@@ -73,6 +79,7 @@ func (c *Djsw2Controller) UnlockOrder() {
}
func (c *Djsw2Controller) UserCancelOrder() {
globals.SugarLogger.Debugf("========jds2 := %s", "UserCancelOrder")
c.nullOperation()
}