This commit is contained in:
邹宗楠
2025-12-30 14:43:11 +08:00
parent 85e635ce6f
commit 035b057b37
2 changed files with 9 additions and 9 deletions

View File

@@ -51,7 +51,7 @@ func OnCallbackMsg(msg *mtwmapi.CallbackMsg, msgType string) (response *mtwmapi.
var skuStatus = make(map[int][]string, 0)
var operate = make(map[string]string, 0)
for _, v := range dataMap {
if v.AppFoodCode != "" && v.AppPoiCode != "" {
if v.AppFoodCode != "" && v.AppPoiCode != "" && v.DiffContents.IsSoldOut.Origin != v.DiffContents.IsSoldOut.Result {
skuStatus[v.DiffContents.IsSoldOut.Result] = append(skuStatus[v.DiffContents.IsSoldOut.Result], v.AppFoodCode)
storeMap[v.AppPoiCode] = skuStatus
operate[v.AppFoodCode] = fmt.Sprintf("%s:%s:0↑-1↓:前%d->后%d", v.OpAppKey, v.OpName, v.DiffContents.IsSoldOut.Origin, v.DiffContents.IsSoldOut.Result)