This commit is contained in:
邹宗楠
2025-12-26 10:24:33 +08:00
parent 4486aa16f1
commit 1ae6cb0eef
2 changed files with 12 additions and 0 deletions

View File

@@ -46,6 +46,7 @@ func OnCallbackMsg(msg *mtwmapi.CallbackMsg, msgType string) (response *mtwmapi.
globals.SugarLogger.Debugf(" UnmarshalUseNumber err := %v", err)
return nil
}
globals.SugarLogger.Debugf("-------dataMap := %s", utils.Format4Output(dataMap, false))
if len(dataMap) != 0 {
var storeMap = make(map[string]map[int][]string, 0)
var skuStatus = make(map[int][]string, 0)
@@ -57,6 +58,7 @@ func OnCallbackMsg(msg *mtwmapi.CallbackMsg, msgType string) (response *mtwmapi.
operate[v.AppFoodCode] = fmt.Sprintf("%s:%s:0↑-1↓:前%d->后%d", v.OpAppKey, v.OpName, v.DiffContents.IsSoldOut.Origin, v.DiffContents.IsSoldOut.Result)
}
}
globals.SugarLogger.Debugf("-------storeMap := %s", utils.Format4Output(storeMap, false))
for k, v := range storeMap {
storeDetail, _ := dao.GetStoreDetailByVendorStoreID(dao.GetDB(), k, model.VendorIDMTWM, "")
if storeDetail != nil {