This commit is contained in:
邹宗楠
2025-10-22 10:40:00 +08:00
parent b21995c8b9
commit f98a8ab968
2 changed files with 8 additions and 0 deletions

View File

@@ -33,6 +33,9 @@ func OnCallbackMsg(msg *mtwmapi.CallbackMsg, msgType string) (response *mtwmapi.
storeDetail, _ := dao.GetStoreDetailByVendorStoreID(dao.GetDB(), vendorStoreID, model.VendorIDMTWM, "")
_, err := netprinter.PrintStoreStatus(jxcontext.AdminCtx, storeDetail, model.VendorIDMTWM, -9)
response = mtwmapi.Err2CallbackResponse(err, "")
} else if msg.Cmd == mtwmapi.MsgTypeSkuUpdate {
globals.SugarLogger.Debugf("-----MsgTypeSkuUpdate := %s", utils.Format4Output(msg, false))
return mtwmapi.Err2CallbackResponse(nil, "")
} else {
if orderID := GetOrderIDFromMsg(msg); orderID != "" {
jxutils.CallMsgHandler(func() {

View File

@@ -129,6 +129,11 @@ func (c *MtwmController) SkuDelete() {
c.onCallbackMsg(mtwmapi.MsgTypeSkuDelete)
}
func (c *MtwmController) SkuUpdate() {
c.onCallbackMsg(mtwmapi.MsgTypeSkuUpdate)
}
func (c *MtwmController) StoreBind() {
c.onCallbackMsg(mtwmapi.MsgTypeStoreBind)
}