This commit is contained in:
邹宗楠
2025-10-22 14:42:51 +08:00
parent e49a4f6a2e
commit bb18a17919

View File

@@ -34,8 +34,11 @@ func OnCallbackMsg(msg *mtwmapi.CallbackMsg, msgType string) (response *mtwmapi.
_, err := netprinter.PrintStoreStatus(jxcontext.AdminCtx, storeDetail, model.VendorIDMTWM, -9)
response = mtwmapi.Err2CallbackResponse(err, "")
} else if msg.Cmd == mtwmapi.MsgTypeSkuUpdate {
globals.SugarLogger.Debugf("-----FormData := %s", utils.Format4Output(msg.FormData, false))
dataMap := make([]*mtwmapi.VendorUpdateSkuCallback, 0, 0)
json.Unmarshal([]byte(msg.FormData.Get("retail_data")), &dataMap)
globals.SugarLogger.Debugf("-----retail_data := %s", msg.FormData.Get("retail_data"))
globals.SugarLogger.Debugf("-----dataMap := %s", utils.Format4Output(dataMap, false))
if len(dataMap) != 0 {
for _, v := range dataMap {
globals.SugarLogger.Debugf("-----MsgTypeSkuUpdate := %s", utils.Format4Output(v, false))