1
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user