This commit is contained in:
邹宗楠
2024-03-16 10:22:45 +08:00
parent 6926f8bfe8
commit 0461868fc4

View File

@@ -377,9 +377,9 @@ func (c *PurchaseHandler) UpdateStoreStatus(ctx *jxcontext.Context, vendorOrgCod
if isOnline != mtwmapi.PoiStatusOnline {
if err = getAPI(vendorOrgCode, storeID, vendorStoreID).PoiOffline(vendorStoreID); err == nil {
if beego.BConfig.RunMode == "jxgy" {
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, model.DefaultUserIdGuoYuan, fmt.Sprintf("果园美团门店被下线了:门店id[%d],平台门店id[%s]", storeID, vendorStoreID), "!")
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, model.DefaultUserIdGuoYuan, fmt.Sprintf("果园美团门店被休息了<主动>:门店id[%d],平台门店id[%s]", storeID, vendorStoreID), "!")
} else {
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, model.DefaultUserIdCaiShi, fmt.Sprintf("菜市美团门店被下线了:门店id[%d],平台门店id[%s]", storeID, vendorStoreID), "!")
ddmsg.SendUserMessage(dingdingapi.MsgTyeText, model.DefaultUserIdCaiShi, fmt.Sprintf("菜市美团门店被休息了<主动>:门店id[%d],平台门店id[%s]", storeID, vendorStoreID), "!")
}
store := fmt.Sprintf("%s:下线美团门店,门店id[%s]", ctx.GetUserName(), vendorStoreID)
event.AddOperateEvent(ctx, ctx.GetTrackInfo(), store, "", "", 10, "UpdateStore")